Files
rust_browser/tests/goldens/fixtures/121-float-nested-bfc.html
Zachary D. Rowitsch 2e6e220235 Implement CSS float layout (float, clear, BFC containment)
Add layout behavior for float: left/right with FloatContext tracking,
clear property support, shrink-to-fit width, block-level float avoidance,
float-aware inline line breaking, and BFC height expansion for
overflow:hidden containers. Includes 20 golden tests and comprehensive
unit/parser tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 00:51:09 -05:00

37 lines
605 B
HTML

<html>
<head>
<style>
.outer {
width: 600px;
background-color: #cccccc;
}
.float-outer {
float: left;
width: 200px;
height: 100px;
background-color: #ff0000;
}
.inner-bfc {
overflow: hidden;
background-color: #00ff00;
padding: 10px;
}
.float-inner {
float: left;
width: 80px;
height: 40px;
background-color: #0000ff;
}
</style>
</head>
<body>
<div class="outer">
<div class="float-outer"></div>
<div class="inner-bfc">
<div class="float-inner"></div>
<p>Inner BFC with its own float context</p>
</div>
</div>
</body>
</html>