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.
This commit is contained in:
Glenn Watson 2014-09-10 13:43:56 +10:00
parent 05f2d0ca83
commit 98caecf7ec
5 changed files with 83 additions and 3 deletions

View file

@ -0,0 +1,21 @@
<!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>