Index: LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content.html |
diff --git a/LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-content-combinator.html b/LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content.html |
similarity index 53% |
rename from LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-content-combinator.html |
rename to LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content.html |
index b82c30ffb84ead73fd10932ecfa7e7a4d282640a..3613347f881543c2bfc1699e0918b5a38d8a75ec 100644 |
--- a/LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-content-combinator.html |
+++ b/LayoutTests/fast/dom/shadow/no-style-sharing-with-uncommon-attribute-and-pseudo-content.html |
@@ -1,22 +1,20 @@ |
<!doctype html> |
<html> |
<head> |
-<script src="../../../resources/js-test.js"></script> |
<script> |
if (window.testRunner) |
testRunner.waitUntilDone(); |
-var shadow; |
- |
function runTest() { |
- shadow = host.createShadowRoot(); |
+ var shadow = host.createShadowRoot(); |
+ shadow.applyAuthorStyles = false; |
shadow.innerHTML = "<div id='hostInShadow'><div class='parent'><p ishidden='false'>NotHidden</p><p ishidden='true' id='target'>Hidden</p></div></div>"; |
var innerShadow = shadow.getElementById('hostInShadow').createShadowRoot(); |
- innerShadow.innerHTML = "<style>content /content/ .parent [ishidden=true] { display: none; }</style><content>"; |
+ innerShadow.applyAuthorStyles = false; |
+ innerShadow.innerHTML = "<style>content::content .parent [ishidden=true] { display: none; }</style><content>"; |
+ |
window.setTimeout(function() { |
- shouldBe('window.getComputedStyle(shadow.querySelector("#hostInShadow > .parent > p[isHidden=false]")).display', '"block"'); |
- shouldBe('window.getComputedStyle(shadow.querySelector("#hostInShadow > .parent > p[isHidden=true]")).display', '"none"'); |
if (window.testRunner) |
testRunner.notifyDone(); |
}, 0); |