preloader-css-import-no-space.html (1111B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script> 6 var t = async_test('Imported inline CSS with no quote is not blocked on pending CSS'); 7 </script> 8 <link rel=stylesheet href="resources/dummy.css?first-preloader-css-import-no-space&pipe=trickle(d1)"> 9 <script> 10 var this_script_is_necessary_to_block_the_inline_style_processing = true; 11 </script> 12 <style>@import url("resources/dummy.css?second-preloader-css-import-no-space")</style> 13 <script> 14 window.addEventListener("load", t.step_func_done(() => { 15 let entries = performance.getEntriesByType('resource'); 16 let first; 17 let second; 18 for (entry of entries) { 19 if (entry.name.includes("first")) { 20 first = entry; 21 } 22 if (entry.name.includes("second")) { 23 second = entry; 24 } 25 } 26 assert_true(first.responseEnd > second.startTime, "The second resource start time should not be blocked on the first resource response"); 27 })); 28 </script>