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

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

Issue 1151593005: Mark host for style recalc (and child recalc) whenever adding a ShadowRoot (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-added-display-none-host-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-added-display-none-host-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698