tor-browser

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

fcp-gradient.html (808B)


      1 <!DOCTYPE html>
      2 <head>
      3 <title>Performance Paint Timing Test: FCP should not fire with gradient-only backgrounds</title>
      4 <style>
      5    #main {
      6        width: 100px;
      7        height: 100px;
      8        background-image: linear-gradient(to bottom, orange, blue);
      9    }
     10 </style>
     11 </head>
     12 <body>
     13 <script src="/resources/testharness.js"></script>
     14 <script src="/resources/testharnessreport.js"></script>
     15 <script src="../resources/utils.js"></script>
     16 <div id="main"></div>
     17 <script>
     18  setup({"hide_test_state": true});
     19  promise_test(async t => {
     20      assert_implements(window.PerformancePaintTiming, "Paint Timing isn't supported.");
     21      await new Promise(r => window.addEventListener('load', r));
     22      await assertNoFirstContentfulPaint(t);
     23  },  'Gradients should not count as contentful');
     24 </script>
     25 </body>
     26 
     27 </html>