fune/testing/web-platform/tests/html/semantics/scripting-1/the-noscript-element/non-html-noscript.html
Anne van Kesteren 9d5375d39e Bug 1539617 [wpt PR 16078] - HTML: move noscript test to its appropriate place, a=testonly
Automatic update from web-platform-tests
HTML: move noscript test to its appropriate place

--

wpt-commits: 080f374c76435599277acbc8d7796477be5b43f4
wpt-pr: 16078


--HG--
rename : testing/web-platform/tests/html/scripting/the-noscript-element/non-html-noscript.html => testing/web-platform/tests/html/semantics/scripting-1/the-noscript-element/non-html-noscript.html
2019-04-24 11:31:01 +01:00

16 lines
771 B
HTML

<!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>