aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-03-28 22:09:18 -0400
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-03-29 00:51:32 -0400
commitcb63cfd5c7ad6c8088f8b3ccf11f0fa801fe2d89 (patch)
tree29f73fb04914e18c7c8d1975f83f6c9c1818f986 /tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element
parentfcd6beb60819ef2960f70d10e82fa31ba56cc99b (diff)
downloadservo-cb63cfd5c7ad6c8088f8b3ccf11f0fa801fe2d89.tar.gz
servo-cb63cfd5c7ad6c8088f8b3ccf11f0fa801fe2d89.zip
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element')
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element/non-html-noscript.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element/non-html-noscript.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element/non-html-noscript.html
new file mode 100644
index 00000000000..2f85d1d47dc
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-noscript-element/non-html-noscript.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<title>noscript rules don't apply to non-html elements</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-noscript-element">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1470150">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<body>
+<script>
+test(function() {
+ let non_html_noscript = document.createElementNS("http://www.w3.org/2000/svg", "noscript");
+ document.body.appendChild(non_html_noscript);
+ assert_not_equals(getComputedStyle(non_html_noscript).display, "none");
+}, "Non-HTML <noscript> element shouldn't be undisplayed by a UA rule");
+</script>
+</body>