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