summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/css-module-assertions/resources/crossorigin-import-without-cors.sub.html
blob: ab70b735732dc76f9e8438c578da82f8aa04561c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
    <title>css-module-assertions-import-cross-domain-NoCORS</title>
    <script src="../../module/crossorigin-common.js"></script>
</head>
<body>
    <h1>css-module-assertions-import-cross-domain-NoCORS</h1>
    <script type="module" onerror="document._log.push('error');">
        import styleSheet from "http://{{domains[www2]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/css-module-assertions/resources/basic.css" assert { type: "css" };
        // Push an event to the log indicating that the script was executed.
        document._log.push(`imported CSS: ${styleSheet.rules[0].cssText}`);
    </script>
</body>
</html>