tor-browser

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

dynamic-1.html (1236B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>CSS 2.1 Test Suite: :first-letter</title>
      5  <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
      6  <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
      7  <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter"/>
      8  <meta name="flags" content="dom" />
      9 <script>function setTextContent(n, t) { n.textContent = t; }
     10 
     11 var stylesheets = [];
     12 function initFuzzerSpecific()
     13 {
     14  var myStylesheetHolder = document.getElementsByTagName("head")[0];
     15 
     16  for (var i = 0; i < 25; ++i) {
     17    var s = document.createElementNS("http://www.w3.org/1999/xhtml", 'style');
     18    s.style.display = "none";
     19    myStylesheetHolder.appendChild(s);
     20    stylesheets.push(s);
     21  }
     22 }
     23 </script>
     24 <style>
     25  span:before { content: open-quote; }
     26  span:after { content: close-quote; }
     27  span { quotes: '"' '"'; }
     28 </style>
     29 </head>
     30 <body>
     31 
     32 <p><span>Foo</span></p>
     33 
     34 <p id="p2"><span id="q2"></span></p>
     35 
     36 <script>
     37  document.body.offsetWidth;
     38  initFuzzerSpecific();
     39  setTextContent(stylesheets[1], "*:after { border: 3px solid green; } :first-letter { color: green; }");
     40  setTextContent(stylesheets[2], "*:before { counter-reset: chicken; }");
     41 </script>
     42 
     43 </body>
     44 </html>