servo/tests/ref/table_cell_float_a.html
Patrick Walton f0954f8799 layout: Generate anonymous table objects as necessary per CSS 2.1 §
17.2.1.

Improves Facebook Timeline.
2015-04-27 14:12:44 -07:00

29 lines
450 B
HTML

<!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 {
display: table-cell;
width: 128px;
height: 64px;
background: green;
}
</style>
</head>
<body>
<section></section>
<div class=a></div>
</body>
</html>