mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
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:
parent
69fa1d1b6e
commit
99b2eff988
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/tcl3
Commit: 99b2eff988
Pull-request: https://github.com/SerenityOS/serenity/pull/23967
Reviewed-by: https://github.com/awesomekling
4 changed files with 57 additions and 1 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue