content-visibility-hidden-and-innertext.html (773B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="match" href="content-visibility-hidden-and-innertext-ref.html"> 4 <link rel="help" href="https://drafts.csswg.org/css-contain-2/#content-visibility"> 5 <meta name="assert" content="content-visibility does not apply to non-atomic inline level boxes since size containment does not apply to them. HTMLElement.innerText should return the inline box content"> 6 <style> 7 body { 8 font-family: Monospace; 9 } 10 div { 11 color: transparent; 12 height: 0px; 13 } 14 </style> 15 PASS if innerText reads: "content-visibility does not apply to inline boxes" 16 <div id=source><span style="content-visibility: hidden">content-visibility does not apply to inline boxes</span></div> 17 <pre id=output></pre> 18 <script> 19 output.innerText = "innerText: " + source.innerText; 20 </script>