summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/break-before-with-no-fragmentation-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-break/break-before-with-no-fragmentation-crash.html')
-rw-r--r--testing/web-platform/tests/css/css-break/break-before-with-no-fragmentation-crash.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-break/break-before-with-no-fragmentation-crash.html b/testing/web-platform/tests/css/css-break/break-before-with-no-fragmentation-crash.html
new file mode 100644
index 0000000000..fb80ec45bc
--- /dev/null
+++ b/testing/web-platform/tests/css/css-break/break-before-with-no-fragmentation-crash.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-break/">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=966369">
+<div id="container" style="height:100px";>
+ <div style="height:100%;">
+ <div style="break-before:page;"></div>
+ </div>
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+ test(()=> {
+ document.body.offsetTop;
+ container.style.height = "101px";
+ }, "no crash");
+</script>