2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / noscript-style.html
blob4f11dbab343afab2d727d524b66d3eddc17ab096
1 <head>
2 <script>
3 if (window.layoutTestController)
4 layoutTestController.dumpAsText();
5 </script>
6 <style>
7 noscript { display:block; position:absolute; width:100px; height:100px }
8 </style>
9 <body>
10 Test that noscript element is in DOM but can't be styled.<br>
11 <noscript>abc</noscript>
12 <script>
13 var noscript = document.getElementsByTagName('noscript')[0];
14 document.write((noscript.offsetWidth == 0 ? "PASS" : "FAIL"));
15 </script>