2 <title>WebBundle subresource loading for static elements
</title>
5 href=
"https://github.com/WICG/webpackage/blob/main/explainers/subresource-loading.md"
7 <script src=
"/resources/testharness.js"></script>
8 <script src=
"/resources/testharnessreport.js"></script>
10 <script type=
"webbundle">
12 "source":
"../resources/wbn/static-element.wbn",
14 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/script.js",
15 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/style.css",
16 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/style-imported-from-file.css",
17 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/resources/style-imported-from-tag.css"
20 "https://{{domains[]}}:{{ports[https][0]}}/web-bundle/resources/wbn/static-element/scopes/"
24 <style type=
"text/css">
25 @import
'../resources/wbn/static-element/resources/style-imported-from-tag.css';
26 @import
'../resources/wbn/static-element/scopes/style-imported-from-tag.css';
28 <link href=
"../resources/wbn/static-element/resources/style.css" rel=stylesheet
>
29 <link href=
"../resources/wbn/static-element/scopes/style.css" rel=stylesheet
>
30 <script src=
"../resources/wbn/static-element/resources/script.js"></script>
31 <script src=
"../resources/wbn/static-element/scopes/script.js"></script>
32 <script src=
"../resources/wbn/static-element/out-of-scope/script.js"></script>
36 assert_true(HTMLScriptElement
.supports('webbundle'));
39 <script src=
"resources/static-element-with-test.js"></script>