Created
January 23, 2017 17:03
-
-
Save SwagColoredKitteh/8aa83cb83bfed38255faaa0915949bc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8"> | |
<title>Out-of-order stylesheet loads for the same element happen correctly, even with imports (issue #15101)</title> | |
<script src="/resources/testharness.js"></script> | |
<script src="/resources/testharnessreport.js"></script> | |
<script> | |
async_test(function(t) { | |
var link = document.createElement("link"); | |
link.rel = "stylesheet"; | |
link.href = "resources/imports-background-red.css?pipe=trickle(d3)"; | |
document.head.appendChild(link); | |
link.href = "resources/imports-background-green.css"; | |
t.step_timeout(function() { | |
assert_equals(getComputedStyle(document.body).getPropertyValue("background-color"), "rgb(0, 128, 0)"); | |
}, 4000); | |
}, "out-of-order stylesheet loads for the same element happen correctly, even with imports"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment