mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
the float ceiling. As the float ceiling is relative to the border box, not the margin box, of the parent flow, top margin must not be included. This exposed a pre-existing bug whereby margins are discarded if a block contains only floats and no content, affecting the tests `float_intrinsic_height.html` and `margins_inside_floats_a.html`. As a workaround, some invisible content has been added to the bodies of both tests.
24 lines
409 B
HTML
24 lines
409 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
.otherprojects {
|
|
background-color: red;
|
|
float: left;
|
|
width: 200px;
|
|
}
|
|
.otherprojects-item {
|
|
background-color: yellow;
|
|
float: left;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="otherprojects">
|
|
<div class="otherprojects-item">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|