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

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

Issue 216543002: Revert of Remove applyAuthorStyles flag from ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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;
10 shadow.innerHTML = "<style> [ishidden=true] { display: none; } </style><p is hidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p>"; 11 shadow.innerHTML = "<style> [ishidden=true] { display: none; } </style><p is hidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p>";
11 var target = shadow.getElementById("target"); 12 var target = shadow.getElementById("target");
12 window.setTimeout(function() { 13 window.setTimeout(function() {
13 if (window.testRunner) 14 if (window.testRunner)
14 testRunner.notifyDone(); 15 testRunner.notifyDone();
15 }, 0); 16 }, 0);
16 }; 17 };
17 </script> 18 </script>
18 </head> 19 </head>
19 <body onload="runTest()"> 20 <body onload="runTest()">
20 <div id="host"></div> 21 <div id="host"></div>
21 </body> 22 </body>
22 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698