tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

dynamic-restyle-01.html (753B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <head>
      4    <title>CSS 2.1 Test Suite: generated content</title>
      5    <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" />
      6    <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
      7    <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/>
      8    <meta name="flags" content="dom" />
      9 <style>
     10 body::before {
     11  content:"Before";
     12  border:inherit;
     13 }
     14 .cl::after {
     15  display:block;
     16  content:"After";
     17 }
     18 </style>
     19 <script>
     20 function fixupDOM() {
     21  document.body.setAttribute("style", "border:2px solid red;");
     22  document.body.className = "cl";
     23  document.documentElement.className = "";
     24 }
     25 </script>
     26 </head>
     27 <body onload="fixupDOM()">
     28 </body>
     29 </html>