Chromium Code Reviews

Side by Side Diff: LayoutTests/fast/dom/shadow/outer-scope-wins.html

Issue 1224673002: Implement proposed shadow tree cascade order. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added documentation Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>.t { color: green }</style>
3 <div id="host">
4 <span id="t" class="t">This text should be green.</span>
5 </div>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9
10 var root = host.createShadowRoot();
11 root.innerHTML = '<style>::content > * { color: red }</style><content></content> ';
12 document.write(getComputedStyle(t).color == "rgb(0, 128, 0)" ? "PASS" : "FAIL");
13 </script>
OLDNEW

Powered by Google App Engine