fcp-invisible-scale-transition.html (717B)
1 <!DOCTYPE html> 2 <head> 3 <title>Performance Paint Timing Test: FCP in transition</title> 4 <style> 5 #main { 6 width: 100px; 7 height: 100px; 8 left: 0px; 9 transform: scale(0); 10 transition: transform 1s; 11 position: relative; 12 top: 0; 13 } 14 15 /* contentful class is defined in test_fcp script. */ 16 #main.contentful { 17 transform: scale(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">TEXT</div> 26 <script> 27 test_fcp("First contentful paint fires when revealed during transition."); 28 </script> 29 </body> 30 </html>