Update web-platform-tests to revision b'7af9d6ec48ab04043a2bea85a3599904a1a19efa'

This commit is contained in:
WPT Sync Bot 2021-02-21 08:20:50 +00:00 committed by Josh Matthews
parent 8050c95e31
commit 87be1008de
2742 changed files with 142451 additions and 40667 deletions

View file

@ -26,15 +26,11 @@ const ids = [
"external-quoted"
];
const inline_url = location.href;
const external_url = new URL(document.querySelector("link[rel=stylesheet]").href, location.href).href;
for (let id of ids) {
test(function() {
const el = document.getElementById(id);
const expected = id.startsWith("inline-") ? inline_url : external_url;
const style = window.getComputedStyle(el);
assert_equals(style["background-image"], 'url("' + expected + '")');
assert_equals(style["background-image"], 'url("about:invalid")');
}, "empty URL: " + id);
}
</script>