From 223b2bac8f41b51b10c8a7ca5f8ea2a80bbe6b41 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 15 Mar 2019 19:06:52 +0100 Subject: [PATCH] HTML: mutating the style element --- .../the-style-element/mutations.window.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 html/semantics/document-metadata/the-style-element/mutations.window.js diff --git a/html/semantics/document-metadata/the-style-element/mutations.window.js b/html/semantics/document-metadata/the-style-element/mutations.window.js new file mode 100644 index 00000000000000..b8ccedc9a05176 --- /dev/null +++ b/html/semantics/document-metadata/the-style-element/mutations.window.js @@ -0,0 +1,7 @@ +test(() => { + const style = document.body.appendChild(document.createElement("style")), + styleS = style.sheet; + assert_not_equals(styleS, null); + style.appendChild(new Comment()); + assert_equals(styleS, style.sheet); +}, "Mutating the style element: inserting a Comment node");