summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/chrome-first-letter-container-query-crash.html
blob: 6647e38731516ff001beccffb8a9969125a04a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<head>
  <title>Chrome crash issue 41492455</title>
  <link rel="help" href="https://issues.chromium.org/issues/41492455">
</head>
<span id="sp"></span>
<style>
  head, html, body, span { display: inline-block; }
  html::first-letter, span::first-letter {
    color: pink;
  }
  span {
    container-type: inline-size;
    float: right;
  }
  body {
    writing-mode: vertical-rl;
  }
</style>
<script>
  document.body.offsetHeight;
  document.documentElement.style.display = "block";
  document.head.style.display = "none";
  document.body.style.display = "block";
  sp.style.display = "inline";
  document.body.offsetHeight;
</script>