haikuwebkit/LayoutTests/fast/dom/noscript-style.html

16 lines
405 B
HTML

<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<style>
noscript { display:block; position:absolute; width:100px; height:100px }
</style>
<body>
Test that noscript element is in DOM but can't be styled.<br>
<noscript>abc</noscript>
<script>
var noscript = document.getElementsByTagName('noscript')[0];
document.write((noscript.offsetWidth == 0 ? "PASS" : "FAIL"));
</script>