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