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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/stylesheets-order-in-shadow-dom.html

Issue 2843883002: Remove, or rewrite if necessary, tests which use /deep/ or ::shadow (Closed)
Patch Set: rev Created 3 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="resources/shadow-dom.js"></script>
3 <script src="../../../resources/js-test.js"></script>
4 <style>
5 .hello, div::shadow .hello {
6 color: yellowgreen;
7 }
8 .world, div::shadow .world {
9 color: red;
10 }
11 </style>
12 <style>
13 .world, div::shadow .world {
14 color: yellow;
15 }
16 </style>
17 <body></body>
18 <script>
19 description('crbug.com/396585: ShadowDom CSS doesn\'t merge style');
20
21 document.body.appendChild(
22 createDOM('div', {'id': 'host'},
23 createShadowRoot(
24 createDOM('span', {'class': 'hello' },
25 document.createTextNode("Hello, ")),
26 createDOM('span', {'id': 'world', 'class': 'hello world' },
27 document.createTextNode("World")))));
28
29 shouldBe('window.getComputedStyle(getNodeInComposedTree("host/world")).color', ' "rgb(255, 255, 0)"');
30 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698