summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-alt-crash-001.html
blob: b057967e7e967b1b3113c69f71f1298b86ce4df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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>