From 54253328a85526f83bd66c49c24a4c3f19a90f97 Mon Sep 17 00:00:00 2001 From: David Shin Date: Thu, 21 Nov 2024 16:10:16 +0000 Subject: [PATCH] Ensure inline elements inside an empty line has zero block-size and no baseline in scrolled block frames. Differential Revision: https://phabricator.services.mozilla.com/D229709 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1931466 gecko-commit: 160977ed2e6cd8576c70840d388d1a6bcfc07262 gecko-reviewers: layout-reviewers, dholbert --- css/css-inline/empty-span-size-001-ref.html | 11 ++++++++ css/css-inline/empty-span-size-001.html | 28 +++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/css/css-inline/empty-span-size-001-ref.html b/css/css-inline/empty-span-size-001-ref.html index 6c55c63b56a0bd..7cdb84a5bb0486 100644 --- a/css/css-inline/empty-span-size-001-ref.html +++ b/css/css-inline/empty-span-size-001-ref.html @@ -7,6 +7,16 @@ border: 1px solid; } +.oa { + height: 100px; +} + +.filler { + height: 100px; + box-sizing: border-box; + border: 1px solid; +} + ul { margin: 0; } @@ -21,6 +31,7 @@ }

+



 

diff --git a/css/css-inline/empty-span-size-001.html b/css/css-inline/empty-span-size-001.html index ea897891681462..bbb33c6fc59221 100644 --- a/css/css-inline/empty-span-size-001.html +++ b/css/css-inline/empty-span-size-001.html @@ -1,4 +1,5 @@ + @@ -21,6 +22,21 @@ vertical-align: top; } +.oa { + overflow: hidden; + height: 100px; +} + +.filler { + height: 100px; + box-sizing: border-box; + border: 1px solid; +} + +.bad { + background: red; +} + ul { margin: 0; } @@ -28,11 +44,23 @@ li { width: 0; } +

+ +
+
+ +
+




+ +