https://meyerweb.com/eric/thoughts/2025/12/19/targeting-by-reference-in-the-shadow-dom/ meyerweb.com Main content Navigation links Footer * Post Archives * CSS Work * Toolbox * Writing * Speaking * Other Stuff * About this site Targeting by Reference in the Shadow DOM Published 1 week past I've long made it clear that I don't particularly care for the whole Shadow DOM thing. I believe I understand the problems it tries to solve, and I fully acknowledge that those are problems worth solving. There are just a bunch of things about it that don't feel right to me, like how it can break accessibility in a number of ways. One of those things is how it breaks stuff like the commandFor attribute on