/[suikacvs]/www/test/dom/style-declaration/set-property/set-property-1.html
Suika

Contents of /www/test/dom/style-declaration/set-property/set-property-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sun Dec 30 08:52:53 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests; support for IE

1 wakaba 1.1 <!DOCTYPE HTML>
2     <html>
3     <head>
4     <title>CSSStyleDeclaration.setProperty</title>
5     <style>
6     div {
7     color: red;
8     background-color: blue;
9     }
10     </style>
11     <script src="../../../support/result0.js"></script>
12     </head>
13     <body>
14    
15     <p><code>setProperty</code> = <script>
16     var style = document.getElementsByTagName ('style')[0];
17     var ss = style.sheet || style.styleSheet;
18     var rules = ss.cssRules || ss.rules;
19     var sd = rules[0].style;
20     writeResult (sd.setProperty);
21     </script></code></p>
22    
23     </body>
24     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24