servo/tests/ref/abs_float_pref_width_a.html
Glenn Watson 98caecf7ec Fix layout of Create Account / Login when rendering Wikipedia.
When calculating the preferred width for a block, accumulate
the left and right float widths of children separately, which
is then max'ed with the normal flow widths later on.

Ref bug #2554 - improves the layout of the top bar.
2014-09-10 13:51:42 +10:00

30 lines
576 B
HTML

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: 'ahem';
src: url(fonts/ahem/ahem.ttf);
}
body {
margin: 0;
font-family: 'ahem';
font-size: 100px;
color: green;
}
div {
position: absolute;
left: 100px;
}
span {
float: left;
}
</style>
</head>
<body>
<div>
<span>X</span>
<span>X</span>
</div>
</body>
</html>