mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision b'7af9d6ec48ab04043a2bea85a3599904a1a19efa'
This commit is contained in:
parent
8050c95e31
commit
87be1008de
2742 changed files with 142451 additions and 40667 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue