/[suikacvs]/www/test/dom/style-sheet/css-rules/iframe-relative-import-2-2.html
Suika

Contents of /www/test/dom/style-sheet/css-rules/iframe-relative-import-2-2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat May 12 07:01:08 2007 UTC (19 years, 3 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests

1 wakaba 1.1 <!DOCTYPE html>
2     <html>
3     <head>
4     <title>Access to cssRules in &lt;iframe></title>
5     <style type="text/css">
6     iframe {
7     width: 0; height: 0; border-style: none;
8     }
9     </style>
10     </head>
11     <body>
12     <p id="result">FAIL (noscript)</p>
13     <p><iframe src="iframe-relative-import-2-content.html"></iframe></p>
14     <script type="text/javascript">
15     var r = document.getElementById ('result');
16     r.innerHTML = 'FAIL';
17     var iframe = document.getElementsByTagName ('iframe')[0];
18     var idoc = iframe.contentDocument;
19     var istyle = idoc.getElementsByTagName ('style')[0];
20     var isheet = istyle.sheet;
21     var cssRules = isheet.cssRules;
22     if (cssRules) {
23     r.innerHTML = 'PASS';
24     }
25     </script>
26     </body>
27     </html>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24