Files
sousa-gecko/testing/web-platform/tests/css/css-sizing/stretch/stretch-float-with-sibling.html
T
Sammy Gill 4e9aa7cdf9 Bug 2034284 [wpt PR 59428] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=312222, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=312222 (#59428)
--

wpt-commits: 4675c1f8cd610d8667caa94c09fcb291e493f318
wpt-pr: 59428
2026-05-08 08:36:32 +00:00

25 lines
794 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Sizing: stretch on float with tall sibling between floats</title>
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#stretch-fit-sizing">
<link rel="match" href="stretch-float-with-sibling-ref.html">
<meta name="assert" content="
A float with width:stretch should resolve to the containing block width
even when a tall non-float block separates it from a previous float.
">
<style>
.stretch {
width: -webkit-fill-available;
width: stretch;
float: left;
height: 20px;
background: green;
}
</style>
<p>Test passes if there are two filled green rectangles of equal width.</p>
<div style="width: 200px">
<div class="stretch"></div>
<div style="height: 100px"></div>
<div class="stretch"></div>
</div>