highlight-painting-005-crash.html (665B)
1 <!doctype html><meta charset="utf-8"> 2 <title>CSS Pseudo-Elements Test: highlight painting with display:contents</title> 3 <link rel="author" name="Delan Azabani" href="mailto:dazabani@igalia.com"> 4 <link rel="help" href="https://crbug.com/1429198"> 5 <meta name="assert" value="Checks that highlight painting does not crash when the originating element has decorations that are ineffective due to ‘display’ being ‘contents’."> 6 <style> 7 body { display: contents; text-decoration: underline; } 8 ::selection { /* force full highlight overlay painting */ text-decoration: line-through; } 9 </style> 10 test 11 <script> 12 document.execCommand("selectAll"); 13 </script>