Add support for tables that are floated.

This commit is contained in:
Glenn Watson 2014-09-12 14:42:28 +10:00
parent b64f27b2b6
commit 6a9001b4fd
4 changed files with 76 additions and 4 deletions

View file

@ -122,3 +122,4 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== inline_block_margin_a.html inline_block_margin_ref.html
== inline_block_img_a.html inline_block_img_ref.html
== inline_block_baseline_a.html inline_block_baseline_ref.html
== float_table_a.html float_table_ref.html

View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<style type="text/css">
@font-face {
font-family: 'ahem';
src: url(fonts/ahem/ahem.ttf);
}
body {
margin: 0;
}
table {
font-family: 'ahem';
font-size: 100px;
color: red;
float: right;
line-height: 1;
}
td {
padding: 0;
}
</style>
</head>
<body>
<table>
<tbody>
<tr>
<td>X</td>
</tr>
</tbody>
</table>
</body>
</html>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<style type="text/css">
body {
margin: 0;
}
div {
background-color: red;
width: 100px;
height: 100px;
position: absolute;
right: 0;
}
</style>
</head>
<body>
<div></div>
</body>
</html>