Bug 1539614 [wpt PR 16077] - HTML: move textarea tests together, a=testonly
[gecko.git] / testing / web-platform / tests / loading / preloader-css-import-single-quote.tentative.html
blobf475dc100bd15f2daa94fbdc433eda0491069876
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 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>