summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html22
1 files changed, 10 insertions, 12 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html
index 8f36cf2..63cfdb1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/css-insert-import-rule-to-shadow-stylesheets.html
@@ -1,27 +1,25 @@
<!doctype html>
<html>
-<head>
+<body onload="runTest()";>
+<div id='sandbox'></div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
-function runTest() {
- var sandbox = document.getElementById('sandbox');
- var host = document.createElement('p');
- var shadowRoot = host.createShadowRoot();
- shadowRoot.innerHTML = '<style>div { width: 100px; height: 100px; }</style><div></div>';
- sandbox.appendChild(host);
- document.body.offsetLeft;
- shadowRoot.styleSheets[0].insertRule('@import url(../resources/css-insert-import-rule.css);', 0);
+var sandbox = document.getElementById('sandbox');
+var host = document.createElement('p');
+var shadowRoot = host.createShadowRoot();
+shadowRoot.innerHTML = '<style>div { width: 100px; height: 100px; }</style><div></div>';
+sandbox.appendChild(host);
+document.body.offsetLeft;
+shadowRoot.styleSheets[0].insertRule('@import url(../resources/css-insert-import-rule.css);', 0);
+function runTest() {
setTimeout(function(){
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
</script>
-</head>
-<body onload="runTest()";>
-<div id='sandbox'></div>
</body>
</html>