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

Side by Side Diff: LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-nodes.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 = "<style> [ishidden=true] { display: none; } </style><p is hidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p>"; 10 shadow.innerHTML = "<style> [ishidden=true] { display: none; } </style><p is hidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p>";
12 var target = shadow.getElementById("target"); 11 var target = shadow.getElementById("target");
13 window.setTimeout(function() { 12 window.setTimeout(function() {
14 if (window.testRunner) 13 if (window.testRunner)
15 testRunner.notifyDone(); 14 testRunner.notifyDone();
16 }, 0); 15 }, 0);
17 }; 16 };
18 </script> 17 </script>
19 </head> 18 </head>
20 <body onload="runTest()"> 19 <body onload="runTest()">
21 <div id="host"></div> 20 <div id="host"></div>
22 </body> 21 </body>
23 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698