Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-added-display-none-host.html

Issue 1156273002: Add assert that updateLayoutTree clears dirty bits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check the accept conditions for documents. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <script src="../../../resources/js-test.js"></script>
4
5 <div style="display: none">
6 <span id="host"></span>
7 </div>
8
9 <script>
10 description("Tests adding a shadow root to a display none host doesn't leave dirty bits.");
11
12 getComputedStyle(document.body).color; // recalcStyle.
13 var root = document.getElementById("host").createShadowRoot();
14 var inside = document.createElement("inside");
15 root.appendChild(inside);
16
17 shouldBeEqualToString("getComputedStyle(inside).borderWidth", "0px");
18 inside.style.border = "10px solid red";
19 shouldBeEqualToString("getComputedStyle(inside).borderWidth", "10px");
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698