tor-browser

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

first-letter-opacity-float-001.html (893B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: floating ::first-letter with opacity</title>
      3 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
      4 <link rel="match" href="first-letter-opacity-float-001-ref.html">
      5 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
      6 <meta name="assert" content="Test checks that a floated ::first-letter with opacity is rendered correctly with dynamic changes.">
      7 <style>
      8  #one::first-letter { float: left; opacity: 0.5 }
      9  #two { opacity: 0.5 }
     10 /* Disable kerning because kerning may differ for different node tree. */
     11 html { font-kerning: none; font-feature-settings: "kern" off; }
     12 </style>
     13 <div id="one">PASS</div>
     14 <div id="two"></div>
     15 <script>
     16  requestAnimationFrame(() =>
     17    requestAnimationFrame(() => {
     18      // This used to crash the compositing code in Blink.
     19      one.appendChild(two);
     20    }));
     21 </script>