tor-browser

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

first-letter-text-and-display-change.html (698B)


      1 <!doctype html>
      2 <title>CSS Test: Change display for the ::first-letter container while replacing text node</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-pseudo/#first-letter-pseudo">
      4 <link rel="match" href="../reference/pass_if_letter_uppercase.html">
      5 <style>
      6  #container::first-letter { text-transform: uppercase }
      7  #container.ib { display: inline-block }
      8 </style>
      9 <body>
     10  <p>Test passes if the letter "F" in the words "Filler Text" below is in upper-case.</p>
     11  <div id="container">Test not run</div>
     12 </body>
     13 <script>
     14  container.offsetTop;
     15  container.className = "ib";
     16  container.appendChild(document.createTextNode("filler Text"));
     17  container.firstChild.remove();
     18 </script>