embed-document-under-content-visibility-gbcr.html (797B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>HTML Test: The embed element represents a document</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <meta name="assert" content="Ensure document finishes load when getBoundingClientRect is attempted before the embed is finished loading"> 7 8 <style> 9 .hidden { content-visibility: hidden; } 10 </style> 11 <body> 12 <script> 13 async_test(t => { 14 addEventListener('load', t.step_func_done(() => { 15 assert_true(window.childLoaded); 16 })); 17 }, "ensure onload happens"); 18 </script> 19 <div class=hidden> 20 <embed id=target src="embed-iframe.html"> 21 </div> 22 <script> 23 // Ensure we process style and layout in the hidden object. 24 target.getBoundingClientRect(); 25 </script> 26 </body>