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

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

Issue 1298173004: Implement proposed shadow tree cascade order. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed expected results and added another TODO. Created 5 years, 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script src="resources/shadow-dom.js"></script>
4 <div id="sandbox"></div>
5 <script>
6 description("Outer scope rules wins, even with lower specificity.");
7
8 sandbox.appendChild(
9 createDOM('div', {'id': 'host'},
10 createShadowRoot(
11 createDOM('style', {},
12 document.createTextNode(
13 '::content #target { color: red; }')),
14 createDOM('content', {})),
15 createDOM('style', {},
16 document.createTextNode(
17 'span { color: green; }')),
18 createDOM('span', {'id': 'target'})));
19
20 shouldBeEqualToString("getComputedStyle(target).color", "rgb(0, 128, 0)");
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698