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>
14 lines
253 B
HTML
14 lines
253 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
.float-left { float: left; width: 500px; height: 50px; }
|
|
.a { background-color: #ff0000; }
|
|
.b { background-color: #0000ff; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="float-left a"></div>
|
|
<div class="float-left b"></div>
|
|
</body>
|
|
</html>
|