Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Dom Farolino" href="mailto:dom@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link id=style_link rel=stylesheet>
<script>
async_test(t => {
const link = document.querySelector('#style_link');
link.onerror = t.unreached_func('Sheet should load successfully');
link.onload = t.step_func(() => {
link.onload = t.step_func_done(() => {});
link.href = 'style.css?second';
});
link.href = 'style.css?first';
}, "Check if the <link>'s load event fires for each stylesheet it loads");
</script>
</head>
</html>