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

Side by Side Diff: LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-content-combinator.html

Issue 205563004: Revert of Implement /content/ combinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 years, 9 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 if (window.testRunner)
7 testRunner.waitUntilDone();
8
9 var shadow;
10
11 function runTest() {
12 shadow = host.createShadowRoot();
13 shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden=' false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>";
14
15 var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot();
16 innerShadow.innerHTML = "<style>content /content/ .parent [ishidden=true] { display: none; }</style><content>";
17 window.setTimeout(function() {
18 shouldBe('window.getComputedStyle(shadow.querySelector("#hostInShadow > .parent > p[isHidden=false]")).display', '"block"');
19 shouldBe('window.getComputedStyle(shadow.querySelector("#hostInShadow > .parent > p[isHidden=true]")).display', '"none"');
20 if (window.testRunner)
21 testRunner.notifyDone();
22 }, 0);
23 }
24 </script>
25 </head>
26 <body onload="runTest()">
27 <div id="host">
28 </div>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698