mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
layout: Make margin: auto
work properly with tables.
Improves the Amazon home page.
This commit is contained in:
parent
ae99a17a1b
commit
44a30054a1
9 changed files with 246 additions and 98 deletions
20
tests/ref/table_margin_auto_a.html
Normal file
20
tests/ref/table_margin_auto_a.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
table {
|
||||
margin: auto;
|
||||
width: 0px;
|
||||
border-spacing: 0;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table><tr><td>Foooooooooooooooooooooooooooooo</td></tr></table>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue