mq-non-matching-lazy-load.tentative.html (805B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <link rel="help" href="https://www.w3.org/TR/CSS2/cascade.html#at-import" /> 4 <script type="text/javascript" src="/resources/testharness.js"></script> 5 <script type="text/javascript" src="/resources/testharnessreport.js"></script> 6 <script> 7 const start_fetching_time = performance.now(); 8 </script> 9 <style type="text/css"> 10 @import "./resources/mq-non-matching-lazy-load-style.css?pipe=trickle(d1)" print; 11 </style> 12 <script> 13 const end_fetching_time = performance.now(); 14 const total_time_elapsed = (end_fetching_time - start_fetching_time); 15 test(() => 16 assert_less_than(total_time_elapsed, 1000) 17 ,"Ensure browser renders the page without waiting for non matching @import style"); 18 </script>