summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html')
-rw-r--r--testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html b/testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html
new file mode 100644
index 0000000000..d685d49bf6
--- /dev/null
+++ b/testing/web-platform/tests/css/css-multicol/multicol-zero-height-003.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Multi-column Test: Test a block element with box-decoration-break:clone in a zero height multi-column container</title>
+<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
+<link rel="help" href="https://drafts.csswg.org/css-break/#breaking-rules">
+<link rel="help" href="https://drafts.csswg.org/css-break/#break-decoration">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1693616">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1754598">
+<link rel="match" href="multicol-zero-height-003-ref.html">
+<meta name="assert" content="This test verifies that a block element with box-decoration-break:clone can make progress when fragmenting in a zero height multi-column container. Also, it should expend 1px of its content-box per fragment, and therefore should only need to create 2 fragments.">
+
+<style>
+.multicol {
+ column-width: 100px;
+ inline-size: 300px;
+ block-size: 0;
+}
+
+.child {
+ color: green;
+ inline-size: 100px;
+ block-size: 2px;
+ border: 5px solid green;
+ box-decoration-break: clone;
+}
+</style>
+
+<!-- WARNING: This test hangs Firefox version < 99 without the fix in bug 1754598. -->
+
+<p>There shouldn't be a green strip in the third column.</p>
+<div class="multicol">
+ <div class="child"></div>
+</div>