mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00: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.
21 lines
366 B
HTML
21 lines
366 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
body {
|
|
margin: 0;
|
|
}
|
|
div {
|
|
position: absolute;
|
|
left: 100px;
|
|
width: 200px;
|
|
height: 100px;
|
|
background-color: green;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
</div>
|
|
</body>
|
|
</html>
|