mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
Avoid broad document invalidation when adding or removing ordinary document-owned or shadow-owned stylesheets. Reuse the targeted StyleSheetInvalidation path for style rules, including shadow-host escapes, pseudo-element-only selectors, and trailing-universal cases. Keep the broad path for sheet contents whose effects are not captured by selector invalidation alone, including @property, @font-face, @font-feature-values, @keyframes, imported sheets, and top-level @layer blocks. Broad-path shadow-root sheets still reach host-side consumers through their active-scope effects.
5 lines
124 B
Plaintext
5 lines
124 B
Plaintext
before color: rgb(255, 0, 0)
|
|
before background: rgb(0, 255, 0)
|
|
after color: rgb(0, 0, 0)
|
|
after background: rgba(0, 0, 0, 0)
|