tor-browser

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

fcp-typographic-pseudo.html (789B)


      1 <!DOCTYPE html>
      2 <head>
      3 <title>Performance Paint Timing Test: FCP should not fire when all text is hidden due to typographic pseudo-elements</title>
      4 <style>
      5    #main {
      6        position: relative;
      7        width: 100px;
      8        height: 100px;
      9    }
     10 
     11    #main *::first-letter {
     12        opacity: 0;
     13    }
     14 
     15    /* contentful class is defined in test_fcp script. */
     16    #main.contentful *::first-letter {
     17        opacity: 1;
     18    }
     19 </style>
     20 </head>
     21 <body>
     22 <script src="/resources/testharness.js"></script>
     23 <script src="/resources/testharnessreport.js"></script>
     24 <script src="../resources/utils.js"></script>
     25 <div id="main">
     26    <div>A</div>
     27 </div>
     28 <script>
     29    test_fcp("First contentful paint fires only when some of the text is visible, considering ::first-letter.")
     30 </script>
     31 </body>
     32 </html>