mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 20:07:38 +02:00
The :host family of pseudo class selectors select the shadow host element when matching against a rule from within the element's shadow tree. This is a bit convoluted due to the fact that the document-level StyleComputer keeps track of *all* style rules, and not just the document-level ones. In the future, we should refactor style storage so that shadow roots have their own style scope, and we can simplify a lot of this. (cherry picked from commit 4c326fc5f6f64797764e7f32a9789b74665f2fec)
137 KiB
137 KiB