summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/crashtests/canvas-as-container-crash.html
blob: ae7fe8dc168774f8fdb3ca9b6720cc3821503dca (plain)
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<title>CSS Container Queries Test: Absolute positioned canvas container crash</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#size-container">
<link rel="help" href="https://crbug.com/1289850">
<p>Pass if there is no crash.</p>
<canvas id="canv" style="display:block;position:absolute;container-type:inline-size"></canvas>
<script>
  canv.offsetTop;
  canv.appendChild(document.createElement("span"));
</script>