summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html')
-rw-r--r--testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html b/testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html
new file mode 100644
index 0000000000..d2617f8aa2
--- /dev/null
+++ b/testing/web-platform/tests/css/css-sizing/min-max-content-orthogonal-flow-crash-001.html
@@ -0,0 +1,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>