column-count-crash.https.html (898B)
1 <!DOCTYPE html> 2 <html class="test-wait"> 3 <link rel="help" href="https://drafts.css-houdini.org/css-paint-api/"> 4 <style> 5 #output { 6 width: 100px; 7 height: 100px; 8 } 9 body { 10 -webkit-mask-box-image-source: url(resources/dot.png); 11 column-count: 3; 12 } 13 .test-wait { 14 column-count: 600; 15 } 16 </style> 17 <body> 18 <div id="output"></div> 19 20 <script id="code" type="text/worklet"> 21 registerPaint('green', class { 22 paint(ctx, geom) {} 23 }); 24 </script> 25 26 <script> 27 // Regression test for crbug.com/1095163, the test passes as long as it doesn't 28 // crash. 29 var el = document.getElementById('output'); 30 el.style.backgroundImage = 'paint(green)'; 31 32 var blob = new Blob([document.getElementById('code').textContent], 33 {type: 'text/javascript'}); 34 CSS.paintWorklet.addModule(URL.createObjectURL(blob)).then(function() { 35 document.documentElement.classList.remove("test-wait"); 36 }); 37 </script> 38 </body> 39 </html>