summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/execution-timing/107-noimport.html
blob: ce57d1f1c529c2eeb80c3db842e8965c10089aa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html><head>
        <title> scheduler: stylesheets blocking scripts document.write</title>
        <script src="/resources/testharness.js"></script>
        <script src="/resources/testharnessreport.js"></script>
        <script src="testlib/testlib.js"></script>
</head>
<body>
        <div id="log">FAILED (This TC requires JavaScript enabled)</div>
        <div id="test">Test</div>

        <!-- this stylesheet blocks scripts -->
        <script>
          test(function() {
            document.write("<link rel='stylesheet' href='css/background.css?pipe=trickle(d2)'>");
            // note that the pass condition here is not per spec (but does match implementations) as of 2012-06-26
            assert_equals(getComputedStyle(document.getElementById("test")).position,
                          "static");
          });
        </script>
</body></html>