summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html
blob: d2617f8aa2d1c966e394abb1d1617c012ea4648e (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
28
29
30
<!DOCTYPE html>
<title>CSS Test: Check computing min-/max-content does not cause crash</title>
<link rel="help" href="https://crbug.com/976859">
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#sizing-values">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
body {
  width: fit-content;
}
#target {
  display: block;
  writing-mode: vertical-lr;
  columns: 2;
}
.after #target {
  float: left;
}
</style>
<body>
  <div id="target"></div>
<script>
test(() => {
  const body = document.body;
  body.offsetTop;
  body.classList.add("after");
});
</script>
</body>