mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +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.
29 lines
314 B
HTML
29 lines
314 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
margin-top: 64px;
|
|
}
|
|
#foo, #bar {
|
|
height: 35px;
|
|
width: 35px;
|
|
}
|
|
#foo {
|
|
background: blue;
|
|
float: right;
|
|
}
|
|
#bar {
|
|
background: gold;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id=foo></div><div id=bar></div>
|
|
</body>
|
|
</html>
|
|
|