mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Fix padding on tables. This fixes the TOC on wikipedia pages.
Ref: #2554
This commit is contained in:
parent
b11a110e85
commit
fd176d5387
5 changed files with 79 additions and 12 deletions
|
@ -132,3 +132,4 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
|
|||
== link_style_order.html link_style_order_ref.html
|
||||
== percent_height.html percent_height_ref.html
|
||||
== inline_block_with_margin_a.html inline_block_with_margin_ref.html
|
||||
== table_padding_a.html table_padding_ref.html
|
||||
|
|
33
tests/ref/table_padding_a.html
Normal file
33
tests/ref/table_padding_a.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ahem';
|
||||
src: url(fonts/ahem/ahem.ttf);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'ahem';
|
||||
font-size: 100px;
|
||||
line-height: 1;
|
||||
}
|
||||
table {
|
||||
background:green;
|
||||
padding: 150px;
|
||||
}
|
||||
th {
|
||||
color: yellow;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>X</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
27
tests/ref/table_padding_ref.html
Normal file
27
tests/ref/table_padding_ref.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
.bg {
|
||||
background-color: green;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
}
|
||||
.fg {
|
||||
background-color: yellow;
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
left: 150px;
|
||||
top: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg"></div>
|
||||
<div class="fg"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue