Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!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";
- setTimeout(t.step_func(function() {
- assert_equals(getComputedStyle(document.body).getPropertyValue("background-color"), "rgb(0, 128, 0)");
- t.done();
- }), 4000);
- }, "out-of-order stylesheet loads for the same element happen correctly, even with imports");
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement