Files
sousa-gecko/testing/web-platform/tests/css/CSS2/floats/float-in-inline-002.html
T
Oriol BrufauandMartin Robinson a8f856b1d5 Bug 2053985 [wpt PR 61192] - layout: Properly account for nested PBM of ancestor inline boxes for floats inside inline boxes, a=testonly
Automatic update from web-platform-tests
layout: Fix position of floats inside inline boxes

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: b7016cb7e178d2cf3c6544cfcab5d52453b74aac
wpt-pr: 61192
2026-07-13 14:37:36 +00:00

19 lines
903 B
HTML

<!DOCTYPE html>
<title>CSS Test: Float inside inline box</title>
<link rel="author" href="mailto:obrufau@igalia.com" title="Oriol Brufau">
<link rel="match" href="../../reference/ref-filled-green-200px-square.html">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats">
<link rel="help" href="https://github.com/servo/servo/issues/46350">
<meta name="assert" content="The float should be placed correctly even if it's inside
an inline box which is inside another inline box with padding, border and margin.">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position: absolute; z-index: -1; width: 200px; height: 200px; background: red"></div>
<span style="padding: 30px; border: 30px solid transparent; margin: 40px">
<span>
<span style="float: left; background: green; width: 200px; height: 200px"></span>
</span>
</span>