commit 697e14501f0c7a6fd7570410a17c86c41c121fe9 parent c4b3bd45243ecc001b3ac850114e6d115b1f1143 Author: Oriol Brufau <obrufau@igalia.com> Date: Tue, 21 Oct 2025 10:30:02 +0000 Bug 1994620 [wpt PR 55470] - layout: Let min-content size break before each unbreakable segment run, a=testonly Automatic update from web-platform-tests Add tests Signed-off-by: Oriol Brufau <obrufau@igalia.com> -- wpt-commits: d99578bcde67bd92a978530c23e93488d7a8c962 wpt-pr: 55470 Diffstat:
3 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-022-ref.html b/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-022-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Test reference</title> +<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> + +<div style="width: 4ic; border: solid"> + 中文中文 +</div> +<div style="width: 1ic; border: solid"> + 中<br>文<br>中<br>文 +</div> diff --git a/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-022.html b/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-022.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<meta charset="UTF-8"> +<title>CSS Text Test: intrinsic sizing and 'white-space: normal' with Chinese characters</title> +<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-breaking"> +<link rel="match" href="reference/white-space-intrinsic-size-022-ref.html"> +<meta name="assert" content=" + The max-content size puts all ideographs on the same line. + The min-content size puts every ideograph on a different line. +"> + +<div style="width: max-content; border: solid"> + 中文中文 +</div> +<div style="width: min-content; border: solid"> + 中文中文 +</div> diff --git a/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-023.html b/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-023.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<meta charset="UTF-8"> +<title>CSS Text Test: intrinsic sizing and 'white-space: normal' with Chinese characters</title> +<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#line-breaking"> +<link rel="match" href="reference/white-space-intrinsic-size-022-ref.html"> +<meta name="assert" content=" + The max-content size puts all ideographs on the same line. + The min-content size puts every ideograph on a different line. +"> + +<div style="width: max-content; border: solid"> + 中文<span>中文</span> +</div> +<div style="width: min-content; border: solid"> + 中文<span>中文</span> +</div>