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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class.html

Issue 637273003: Corrected insertion point style recalc. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class-expected.html » ('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 <style>
3 .square { width: 100px; height: 100px; }
4 </style>
5 <p>You should see two green squares below.</p>
6 <div id="host1">
7 <div class="square"></div>
8 </div>
9 <br>
10 <div id="host2">
11 <div class="square"></div>
12 </div>
13 <script>
14 host1.createShadowRoot().innerHTML = "<style>.c::content .square { background-co lor: green }</style><content></content>";
15 host2.createShadowRoot().innerHTML = "<style>.c::content * { background-color: g reen }</style><content></content>";
16 document.body.offsetTop; // Force style recalc.
17 host1.shadowRoot.querySelector("content").className = "c";
18 host2.shadowRoot.querySelector("content").className = "c";
19 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698