layout: Take the white-space property into account when computing

intrinsic sizes of inline flows.

Improves Amazon.
This commit is contained in:
Patrick Walton 2015-04-22 17:07:06 -07:00
parent f9a50c9be0
commit f8b9b31680
5 changed files with 154 additions and 7 deletions

View file

@ -0,0 +1,50 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
table {
width: 0;
}
td {
border: solid black 1px;
white-space: nowrap;
}
</style>
</head>
<body>
<table>
<tr>
<td>
<div>
<div>Instant Video</div>
</div>
</td>
<td>
<div>
<div>Digital Music Store</div>
</div>
</td>
<td>
<div>
<div>Cloud Drive</div>
</div>
</td>
<td>
<div>
<div>Fire Phone</div>
</div>
</td>
<td>
<div>
<div>Appstore<br>for Android</div>
</div>
</td>
</tr>
</table>
</body>
</html>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
td {
border: solid black 1px;
}
</style>
</head>
<body>
<table>
<tr>
<td>
<div>
<div>Instant&nbsp;Video</div>
</div>
</td>
<td>
<div>
<div>Digital&nbsp;Music&nbsp;Store</div>
</div>
</td>
<td>
<div>
<div>Cloud&nbsp;Drive</div>
</div>
</td>
<td>
<div>
<div>Fire&nbsp;Phone</div>
</div>
</td>
<td>
<div>
<div><div>Appstore</div><div>for Android</div></div>
</div>
</td>
</tr>
</table>
</body>
</html>