blob: b057967e7e967b1b3113c69f71f1298b86ce4df8 [file] [log] [blame]
<!doctype html>
<title>Crash test: img alt rendering in combination with style attribute selector</title>
<link rel="help" href="https://crbug.com/1057210">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
img { display: block; width: 100px; }
[style] + * {}
</style>
<img id="img" alt="alternative text">
<script>
test(() => {
assert_equals(getComputedStyle(img).width, "100px");
}, "Should not crash.");
</script>