Skip to content

Commit 97ec45d

Browse files
committed
Bug 1720570 - Use backgroundImage in relative-urls.html; r=layout-reviewers,emilio
This is to work around Bug 1985880, where Firefox serializes shorthands without making URIs absolute. Differential Revision: https://phabricator.services.mozilla.com/D263416
1 parent e54b57e commit 97ec45d

File tree

1 file changed

+1
-1
lines changed
  • testing/web-platform/tests/html/semantics/scripting-1/the-script-element/css-module

1 file changed

+1
-1
lines changed

testing/web-platform/tests/html/semantics/scripting-1/the-script-element/css-module/relative-urls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
test(() => {
1212
const target = document.querySelector("#target");
1313
document.adoptedStyleSheets = [ styleSheet ];
14-
let backgroundStyle = window.getComputedStyle(target).background;
14+
let backgroundStyle = window.getComputedStyle(target).backgroundImage;
1515
assert_not_equals(backgroundStyle.indexOf("css-module/resources/image.png"), -1);
1616
}, "A relative URL in a CSS module should be resolved relative to the CSS file's URL, not the importing document's URL");
1717
</script>

0 commit comments

Comments
 (0)