summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/document-metadata/the-style-element/style_load_async.html
blob: ef8ac89c4663e970366401bcaa501b774e410c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html>
<meta charset="utf-8">
<title>Style load event should be async</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
    var t = async_test("style load should be async");
    var sync = true;
    function check() {
        assert_false(sync);
        t.done();
    }
</script>
<style onload="t.step(check)">
</style>
<script>
  sync = false
</script>

<body>
  <div id="log"></div>
  <div id="test"></div>
</body>
</html>