mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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.
10 lines
220 B
HTML
10 lines
220 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<div style="float: left;">
|
|
<div style="margin-bottom: 64px;">Must be this tall</div>
|
|
<div style="margin-top: 64px;">to write multi-threaded code.</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|