WebKit Bugzilla
Attachment 343226 Details for
Bug 186882
: getComputedStyle doesn't get invalidated in display: none subtrees.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test-case (should print red red green green)
file_186882.txt (text/html), 417 bytes, created by
Emilio Cobos Álvarez (:emilio)
on 2018-06-21 01:57:27 PDT
(
hide
)
Description:
Test-case (should print red red green green)
Filename:
MIME Type:
Creator:
Emilio Cobos Álvarez (:emilio)
Created:
2018-06-21 01:57:27 PDT
Size:
417 bytes
patch
obsolete
><!doctype html> ><style> >#undisplayed { > color: red; > display: none; >} ></style> ><div id="undisplayed"><div id="child"></div></div> ><script> > document.writeln(getComputedStyle(undisplayed).color); > document.writeln(getComputedStyle(child).color); > undisplayed.style.color = "green"; > document.writeln(getComputedStyle(undisplayed).color); > document.writeln(getComputedStyle(child).color); ></script>
<!doctype html> <style> #undisplayed { color: red; display: none; } </style> <div id="undisplayed"><div id="child"></div></div> <script> document.writeln(getComputedStyle(undisplayed).color); document.writeln(getComputedStyle(child).color); undisplayed.style.color = "green"; document.writeln(getComputedStyle(undisplayed).color); document.writeln(getComputedStyle(child).color); </script>
View Attachment As Raw
Actions:
View
Attachments on
bug 186882
: 343226