summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/crashtests/math-block-container-child-crash.html
blob: 00b6836655e904f1f0d64f7e3f42afaf02fc351b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<title>CSS Container Queries Test: Math block container child crash</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#size-container">
<link rel="help" href="https://crbug.com/1294268">
<p>Pass if there is no crash.</p>
<math id="m" style="display:block math"></math>
<script>
  let div = document.createElement("div");
  div.style.containerType = "size";
  m.appendChild(div);
  div.appendChild(document.createElement("span"));
  document.body.offsetTop;
  div.style.color = "green";
</script>