Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <!doctype html>
  2. <meta charset="utf-8">
  3. <title>Out-of-order stylesheet loads for the same element happen correctly, even with imports (issue #15101)</title>
  4. <script src="/resources/testharness.js"></script>
  5. <script src="/resources/testharnessreport.js"></script>
  6. <script>
  7. async_test(function(t) {
  8. var link = document.createElement("link");
  9. link.rel = "stylesheet";
  10. link.href = "resources/imports-background-red.css?pipe=trickle(d3)";
  11. document.head.appendChild(link);
  12. link.href = "resources/imports-background-green.css";
  13. setTimeout(t.step_func(function() {
  14. assert_equals(getComputedStyle(document.body).getPropertyValue("background-color"), "rgb(0, 128, 0)");
  15. t.done();
  16. }), 4000);
  17. }, "out-of-order stylesheet loads for the same element happen correctly, even with imports");
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement