mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
Rules in a shadow root that match :host(...) can apply different style to shadow descendants when the host's attributes or classes change. The host's own invalidation flow doesn't reach into the shadow tree, so descendants kept their cascaded values from the previous host state. When the host's stylesheets contain :host()-style rules that may match the shadow host, mark the entire shadow subtree dirty so descendant style is recomputed against the new host state.
227 KiB
227 KiB