layout: Generate anonymous table objects as necessary per CSS 2.1 §

17.2.1.

Improves Facebook Timeline.
This commit is contained in:
Patrick Walton 2015-04-14 15:57:32 -07:00
parent b0a7d1bf86
commit f0954f8799
4 changed files with 101 additions and 3 deletions

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that an element with `display: table-cell` is correctly positioned next to a float. -->
<style>
body, html {
margin: 0;
}
section {
float: left;
display: block;
width: 32px;
height: 32px;
background: firebrick;
}
.a {
position: absolute;
left: 32px;
top: 0;
width: 128px;
height: 64px;
background: green;
}
</style>
</head>
<body>
<section></section>
<div class=a></div>
</body>
</html>