Bug 1539614 [wpt PR 16077] - HTML: move textarea tests together, a=testonly
[gecko.git] / testing / web-platform / tests / loading / preloader-css-import-no-quote.tentative.html
blobb83632df2c6ee4d2ddfa294c093cd6a0b56b3e53
1 <!DOCTYPE html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 var t = async_test('Imported inline CSS with no quote is not blocked on pending CSS');
6 </script>
7 <link rel=stylesheet href="resources/dummy.css?first&pipe=trickle(d1)">
8 <script>
9 var this_script_is_neccessary_to_block_the_inline_style_processing = true;
10 </script>
11 <style>
12 @import url(resources/dummy.css?second);
13 </style>
14 <script>
15 window.addEventListener("load", t.step_func_done(() => {
16 let entries = performance.getEntriesByType('resource');
17 let first;
18 let second;
19 for (entry of entries) {
20 if (entry.name.includes("first")) {
21 first = entry;
23 if (entry.name.includes("second")) {
24 second = entry;
27 assert_true(first.responseEnd > second.startTime, "The second resource start time should not be blocked on the first resource response");
28 }));
29 </script>