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>
34 lines
530 B
HTML
34 lines
530 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
.float1 {
|
|
float: left;
|
|
width: 100px;
|
|
height: 40px;
|
|
background-color: #ff0000;
|
|
}
|
|
.float2 {
|
|
float: left;
|
|
width: 100px;
|
|
height: 80px;
|
|
background-color: #0000ff;
|
|
}
|
|
.float3 {
|
|
float: left;
|
|
width: 100px;
|
|
height: 50px;
|
|
background-color: #00ff00;
|
|
}
|
|
p {
|
|
background-color: #ffff00;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="float1"></div>
|
|
<div class="float2"></div>
|
|
<div class="float3"></div>
|
|
<p>Text flows around multiple floats of different heights</p>
|
|
</body>
|
|
</html>
|