commit 22afb37909a44c3cc9b9723e428ea021933e2fe1 parent 6c300c3ce81d4d03ca72a38950d600610238960e Author: Oriol Brufau <obrufau@igalia.com> Date: Wed, 15 Oct 2025 08:59:02 +0000 Bug 1994018 [wpt PR 55398] - layout: Fix optimization of skipping fragments for empty inline boxes, a=testonly Automatic update from web-platform-tests layout: Fix optimization of skipping fragments for empty inline boxes This optimization was only happening when the sum of padding, border and margin was zero. However, since margins can be negative, a sum of zero doesn't guarantee that the components are individually zero. Signed-off-by: Oriol Brufau <obrufau@igalia.com> -- wpt-commits: 0cb99934201b23d76d2a937dac3e08b5f5fdeb1f wpt-pr: 55398 Diffstat:
| A | testing/web-platform/tests/css/CSS2/margin-padding-clear/margin-right-114.html | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/CSS2/margin-padding-clear/margin-right-114.html b/testing/web-platform/tests/css/CSS2/margin-padding-clear/margin-right-114.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<title>CSS Test: Negative margin-right on an inline split by a block descendant</title> +<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> +<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-margin-right"> +<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties"> +<link rel="match" href="../../reference/ref-filled-green-200px-square.html"> +<meta name="assert" content="The negative 'margin-right' doesn't hide the 'border-right'."> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> + +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> +<div style="width: 200px; background: red"> + <span style="font: 200px/1 Ahem; border-right: 200px solid green; margin-right: -200px"> + <div><!-- This is a block that splits the inline --></div> + </span> +</div>