stylesheet-non-OK-status.html (803B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>stylesheet served with non-OK status</title> 4 <link rel="author" title="Michael[tm] Smith" href="mailto:mike@w3.org"> 5 <link rel="help" href="https://html.spec.whatwg.org/#fetching-and-processing-a-resource-from-a-link-element:processresponseconsumebody"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script> 9 async_test((t) => { 10 const link = document.createElement("link"); 11 link.rel = "stylesheet"; 12 link.href = "resources/302-no-Location-header-text-css.asis"; 13 link.onload = t.unreached_func(); 14 link.onerror = t.step_func_done(); 15 document.head.append(link); 16 }, "'load' event does not fire at link@rel=stylesheet having resource with non-OK response status"); 17 </script>