Skip to content

Instantly share code, notes, and snippets.

@SwagColoredKitteh
Created January 23, 2017 16:04
Show Gist options
  • Save SwagColoredKitteh/dc75dbedecc95aac9b09d8f965cc8e67 to your computer and use it in GitHub Desktop.
Save SwagColoredKitteh/dc75dbedecc95aac9b09d8f965cc8e67 to your computer and use it in GitHub Desktop.
<!doctype html>
<meta charset="utf-8">
<title>Out-of-order stylesheet loads for the same element happen correctly (issue #15101)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body></body>
<script>
async_test(function(t) {
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = "/resources/main.css?pipe=trickle(d3)";
link.href = "/resources/alternate.css";
setTimeout(function() {
assert_equals(document.body.style.getPropertyValue("background-color"), "green");
t.done();
}, 4000);
}, "out-of-order stylesheet loads for the same element happen correctly");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment