Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/interact/scripted/defer-01.svg
<?xml version="1.0" encoding="UTF-8"?>
<title>defer on script</title>
<metadata>
</metadata>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<script>
let script_run_status = "inline";
let t = async_test("defer script runs later");
</script>
<script type="text/javascript" href="defer.js" defer="defer"></script>
<script>
t.step(() => {
assert_equals(script_run_status, "inline", "script run status");
script_run_status = "deferred";
});
</script>
</svg>