content-visibility-auto-selection-crash.html (862B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> 6 <meta name="assert" content="Changes to selection that result in no selection do not cause a crash."> 7 <style> 8 * { 9 content-visibility: auto; 10 } 11 </style> 12 <script> 13 document.addEventListener('DOMContentLoaded', () => { 14 document.documentElement.convertPointFromNode({}, marquee, {}) 15 textarea.setSelectionRange(0, 0, 'forward') 16 input.setAttribute('type', 'number') 17 document.documentElement.getBoundingClientRect() 18 }) 19 </script> 20 </head> 21 <body> 22 <marquee id='marquee'></marquee> 23 <textarea id='textarea'></textarea> 24 <input id='input'></input> 25 </body> 26 </html>