LibWeb: Invalidate style when CSSStyleRule selectorText changes

Previously, any change to the selectorText of a CSSStyleRule was not
reflected in the document style.
This commit is contained in:
Tim Ledbetter 2024-04-14 23:05:05 +01:00 committed by Andreas Kling
commit 99b2eff988
Notes: sideshowbarker 2024-07-17 08:25:15 +09:00
4 changed files with 57 additions and 1 deletions

View file

@ -0,0 +1,10 @@
Testing window.document:
selectorText initial value: .green-background
container element backgroundColor initial value: rgb(255, 0, 0)
selectorText after setting selectorText value to #container: #container
container element backgroundColor after setting selectorText value to #container: rgb(0, 255, 0)
Testing iframe.contentDocument:
selectorText initial value: .green-background
container element backgroundColor initial value: rgb(255, 0, 0)
selectorText after setting selectorText value to #container: #container
container element backgroundColor after setting selectorText value to #container: rgb(0, 255, 0)