/[suikacvs]/www/test/dom/document/style/style-sheets/style-sheets-style-2.html
Suika

Contents of /www/test/dom/document/style/style-sheets/style-sheets-style-2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sat Feb 3 03:25:20 2007 UTC (19 years, 5 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests

1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <title>document.styleSheets</title>
5 <script type="text/javascript" src="../../../../support/result0.js"></script>
6 <style type="text/css">
7 #test-style-1 {
8 color: blue;
9 }
10 </style>
11 <style type="text/css">
12 #test-style-2 {
13 color: green;
14 }
15 </style>
16 </head>
17 <body>
18
19 <p><code>document.styleSheets.length</code> = <script type="text/javascript">
20 writeResult (document.styleSheets.length);
21 </script></p>
22
23 <ol>
24 <script type="text/javascript">
25 var sss = document.styleSheets;
26 var sssl = sss.length;
27 for (var i = 0; i < sssl; i++) {
28 var ss = sss[i];
29 document.write ('<li>');
30 writeResult (ss);
31 document.write ('</li>');
32 }
33 </script>
34 </ol>
35
36 </body>
37 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24