fcp-invisible-3d-rotate-descendant.html (1034B)
1 <!DOCTYPE html> 2 <head> 3 <title>Performance Paint Timing Test: FCP due to 3d revealing of descendants</title> 4 <style> 5 #main { 6 width: 100px; 7 height: 100px; 8 left: 0px; 9 position: relative; 10 top: 0; 11 transform: rotateX(45deg); 12 transform-style: preserve-3d; 13 } 14 15 /* 16 This tests that given multiplication effect of 3d transforms on bounding rect, 17 An element counts as contentful/paintable only when its bounding rect is truly non-empty */ 18 #child { 19 transform: rotateX(45deg); 20 } 21 22 /* contentful class is defined in test_fcp script. */ 23 #main.contentful { 24 transform: none; 25 } 26 </style> 27 </head> 28 <body> 29 <script src="/resources/testharness.js"></script> 30 <script src="/resources/testharnessreport.js"></script> 31 <script src="../resources/utils.js"></script> 32 <div id="main"> 33 <div id="child">Text</div> 34 </div> 35 <script> 36 test_fcp("First contentful paint fires due to its ancestor getting rotating into view."); 37 </script> 38 </body> 39 </html>