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

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

Issue 215313003: Remove applyAuthorStyles flag from ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Git is hard 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
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 7
8 function runTest() { 8 function runTest() {
9 var shadow = host.createShadowRoot(); 9 var shadow = host.createShadowRoot();
10 shadow.applyAuthorStyles = false;
11 shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden=' false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>"; 10 shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden=' false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>";
12 11
13 var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot(); 12 var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot();
14 innerShadow.applyAuthorStyles = false;
15 innerShadow.innerHTML = "<style>content::content .parent [ishidden=true] { d isplay: none; }</style><content>"; 13 innerShadow.innerHTML = "<style>content::content .parent [ishidden=true] { d isplay: none; }</style><content>";
16 14
17 window.setTimeout(function() { 15 window.setTimeout(function() {
18 if (window.testRunner) 16 if (window.testRunner)
19 testRunner.notifyDone(); 17 testRunner.notifyDone();
20 }, 0); 18 }, 0);
21 } 19 }
22 </script> 20 </script>
23 </head> 21 </head>
24 <body onload="runTest()"> 22 <body onload="runTest()">
25 <div id="host"> 23 <div id="host">
26 </div> 24 </div>
27 </body> 25 </body>
28 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698