mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
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.
30 lines
576 B
HTML
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>
|