tor-browser

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

fcp-pseudo-element-visibility.html (731B)


      1 <!DOCTYPE html>
      2 <head>
      3 <title>Performance Paint Timing Test: FCP due to pseudo-element becoming visible</title>
      4 <style>
      5    #main {
      6        position: relative;
      7        width: 100px;
      8        height: 100px;
      9    }
     10 
     11    #main:after {
     12        content: "TEXT";
     13        visibility: hidden;
     14    }
     15 
     16    /* contentful class is defined in test_fcp script. */
     17    #main.contentful:after {
     18        visibility: visible;
     19    }
     20 </style>
     21 </head>
     22 <body>
     23 <script src="/resources/testharness.js"></script>
     24 <script src="/resources/testharnessreport.js"></script>
     25 <script src="../resources/utils.js"></script>
     26 <div id="main">
     27 </div>
     28 <script>
     29    test_fcp("First contentful paint fires due to pseudo-element becoming visible.")
     30 </script>
     31 </body>
     32 </html>