aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html')
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html
deleted file mode 100644
index e8476716964..00000000000
--- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!doctype html>
-<head>
- <title>Test resolution of relative URL in CSS module</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
- <div id="target"></div>
- <script type="module">
- import styleSheet from "./resources/load-relative-url.css" assert { type: "css"};
- test(() => {
- const target = document.querySelector("#target");
- document.adoptedStyleSheets = [ styleSheet ];
- let backgroundStyle = window.getComputedStyle(target).background;
- assert_not_equals(backgroundStyle.indexOf("css-module/resources/image.png"), -1);
- }, "A relative URL in a CSS module should be resolved relative to the CSS file's URL, not the importing document's URL");
- </script>
-</body>