img-alt-crash-001.html (493B)
1 <!doctype html> 2 <title>Crash test: img alt rendering in combination with style attribute selector</title> 3 <link rel="help" href="https://crbug.com/1057210"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <style> 7 img { display: block; width: 100px; } 8 [style] + * {} 9 </style> 10 <img id="img" alt="alternative text"> 11 <script> 12 test(() => { 13 assert_equals(getComputedStyle(img).width, "100px"); 14 }, "Should not crash."); 15 </script>