before-after-dynamic-restyle-001.xht (985B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"><head> 2 <title>CSS Test: generated content</title> 3 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" /> 6 <link rel="match" href="before-after-dynamic-restyle-001-ref.xht"/> 7 <meta name="flags" content="dom" /> 8 <style type="text/css"> 9 body:before { 10 content:"Before"; 11 border:inherit; 12 } 13 .cl:after { 14 display:block; 15 content:"After"; 16 } 17 </style> 18 <script type="text/javascript"> 19 function fixupDOM() { 20 document.body.setAttribute("style", "border:2px solid green;"); 21 document.body.className = "cl"; 22 document.documentElement.className = ""; 23 } 24 </script> 25 </head> 26 <body onload="fixupDOM()"> 27 28 29 </body></html>