commit bdfdedbc8be581a9537941dd016f474b0a96ce8b
parent 241cee9ca17a28b403000a8d5c1924c98923c51b
Author: Florian Rivoal <git@florian.rivoal.net>
Date: Wed, 7 Jan 2026 09:19:50 +0000
Bug 2008707 [wpt PR 57002] - Add test for https://github.com/w3c/csswg-drafts/issues/12667, a=testonly
Automatic update from web-platform-tests
Add test for https://github.com/w3c/csswg-drafts/issues/12667
--
wpt-commits: 825a998fbe7578f15957047127cebefc13b5038e
wpt-pr: 57002
Diffstat:
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-overflow/line-clamp/continue-001.html b/testing/web-platform/tests/css/css-overflow/line-clamp/continue-001.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Overflow: continue basic test</title>
+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
+<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#continue">
+<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12667">
+<link rel="match" href="reference/continue-001-ref.html">
+<meta name="assert" content="Continue:collapse should cause excess content to be hidden, without inserting any ellipsis">
+<style>
+.clamp {
+ white-space: pre;
+ continue: collapse;
+ max-height: 3lh;
+}
+</style>
+<p>This test passes if there are 3 lines below, with the 3rd one ending with the digit 3.
+<div class="clamp">Line 1
+Line 2
+Line 3
+Line 4
+Line 5</div>
diff --git a/testing/web-platform/tests/css/css-overflow/line-clamp/reference/continue-001-ref.html b/testing/web-platform/tests/css/css-overflow/line-clamp/reference/continue-001-ref.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Overflow: test reference</title>
+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
+<style>
+.clamp {
+ white-space: pre;
+}
+</style>
+<p>This test passes if there are 3 lines below, with the 3rd one ending with the digit 3.
+<div class="clamp">Line 1
+Line 2
+Line 3</div>