fcp-pseudo-element-display.html (697B)
1 <!DOCTYPE html> 2 <head> 3 <title>Performance Paint Timing Test: FCP due to pseudo-element text</title> 4 <style> 5 #main { 6 position: relative; 7 width: 100px; 8 height: 100px; 9 } 10 11 #main:after { 12 content: "TEXT"; 13 display: none; 14 } 15 16 /* contentful class is defined in test_fcp script. */ 17 #main.contentful:after { 18 display: block; 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 text.") 30 </script> 31 </body> 32 </html>