layout: During inline layout, make place_between_floats use the same

line height computation logic as final block size assignment.

Improves Wikipedia.
This commit is contained in:
Patrick Walton 2015-04-03 11:35:22 -07:00
parent 51dd6984f7
commit 00a2685cbe
6 changed files with 143 additions and 51 deletions

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
font-size: 16px;
font-family: Ahem, monospace;
}
#floaty {
float: left;
height: 20px;
width: 100px;
}
#pre {
white-space: pre;
}
.spacer {
color: transparent;
font-size: 32px;
}
</style>
</head>
<body>
<div id=floaty></div>
<div id=pre>x<span class=spacer>x</span>
x<span class=spacer>x</span></div>
</body>
</html>