mirror of
https://github.com/servo/servo.git
synced 2025-09-14 17:08:22 +01:00
Add support for tables that are floated.
This commit is contained in:
parent
b64f27b2b6
commit
6a9001b4fd
4 changed files with 76 additions and 4 deletions
|
@ -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
|
||||
|
|
35
tests/ref/float_table_a.html
Normal file
35
tests/ref/float_table_a.html
Normal 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>
|
22
tests/ref/float_table_ref.html
Normal file
22
tests/ref/float_table_ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue