From 05018b0d63984198dc6055670ef2c4227a45c63b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 21 Oct 2024 10:59:27 +0000 Subject: [PATCH] Don't paint line-clamped lines. This matches the proposal in https://github.com/w3c/csswg-drafts/pull/10816, and creates much better behavior. Differential Revision: https://phabricator.services.mozilla.com/D157578 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1791226 gecko-commit: cf9f54eef33465d089f850a55da5734a911fdac4 gecko-reviewers: layout-reviewers, dshin --- .../line-clamp/reference/webkit-line-clamp-040-ref.html | 4 +--- css/css-overflow/line-clamp/webkit-line-clamp-050.html | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/css/css-overflow/line-clamp/reference/webkit-line-clamp-040-ref.html b/css/css-overflow/line-clamp/reference/webkit-line-clamp-040-ref.html index f55be86e5461df..0e94ba7461200f 100644 --- a/css/css-overflow/line-clamp/reference/webkit-line-clamp-040-ref.html +++ b/css/css-overflow/line-clamp/reference/webkit-line-clamp-040-ref.html @@ -11,6 +11,4 @@
Line 1 Line 2… -Line 3 -Line 4 -Line 5
+ diff --git a/css/css-overflow/line-clamp/webkit-line-clamp-050.html b/css/css-overflow/line-clamp/webkit-line-clamp-050.html index 973871b72d8532..8757834349fc1c 100644 --- a/css/css-overflow/line-clamp/webkit-line-clamp-050.html +++ b/css/css-overflow/line-clamp/webkit-line-clamp-050.html @@ -16,15 +16,11 @@ border: medium solid green; padding: 15px; } - span { - /* TODO: Remove once we don't paint clamped lines */ - color: transparent; - }
Line1 -
Line2
Line3
- Line4 +
Line2
Line3
+ Line4
Line5
Line6
Line7