Update web-platform-tests to revision 548818eee08f7a6e31b9706b352b5d44b2f6d024

This commit is contained in:
WPT Sync Bot 2019-12-12 08:22:50 +00:00
parent 82fd8d1daf
commit 5e74467d68
112 changed files with 1704 additions and 536 deletions

View file

@ -37,3 +37,12 @@ test(t => {
comment.remove();
assert_not_equals(sheet, style.sheet);
}, "Mutating the style element: removing a Comment node");
test(t => {
const style = document.body.appendChild(document.createElement("style"));
const sheet = style.sheet;
t.add_cleanup(() => style.remove());
assert_not_equals(sheet, null);
style.appendChild(new DocumentFragment());
assert_equals(sheet, style.sheet);
}, "Mutating the style element: inserting an empty DocumentFragment node");