Auto merge of #5980 - pcwalton:table-width-and-center, r=mbrubeck

Improves Hacker News.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5980)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-11 15:25:42 -05:00
commit c1e15e827e
13 changed files with 160 additions and 36 deletions

View file

@ -261,6 +261,7 @@ experimental != overconstrained_block.html overconstrained_block_ref.html
== root_pseudo_a.html root_pseudo_b.html
experimental == rtl_body.html rtl_body_ref.html
experimental == rtl_simple.html rtl_simple_ref.html
== servo_center_a.html servo_center_ref.html
== setattribute_id_restyle_a.html setattribute_id_restyle_b.html
== stacking_context_overflow_a.html stacking_context_overflow_ref.html
== stacking_context_overflow_relative_outline_a.html stacking_context_overflow_relative_outline_ref.html
@ -279,6 +280,7 @@ experimental == rtl_simple.html rtl_simple_ref.html
== table_percentage_capping_a.html table_percentage_capping_ref.html
== table_percentage_width_a.html table_percentage_width_ref.html
experimental == table_row_direction_a.html table_row_direction_ref.html
== table_width_attribute_a.html table_width_attribute_ref.html
== text_align_complex_a.html text_align_complex_ref.html
== text_align_justify_a.html text_align_justify_ref.html
experimental == text_align_rtl.html text_align_rtl_ref.html

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<style>
table {
width: 85%;
background: gold;
}
tbody {
text-align: left;
}
</style>
</head>
<body>
<center>
<table><tr><td>a</td></tr></table>
</center>
</body>
</html>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<style>
table {
width: 85%;
margin-left: auto;
margin-right: auto;
background: gold;
}
</style>
</head>
<body>
<table><tr><td>a</td></tr></table>
</body>
</html>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<style>
table {
background: gold;
}
</style>
</head>
<body>
<table width=85%><tr><td>a</td></tr></table>
</body>
</html>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<style>
table {
width: 85%;
background: gold;
}
</style>
</head>
<body>
<table><tr><td>a</td></tr></table>
</body>
</html>

View file

@ -2,4 +2,4 @@
type: reftest
reftype: ==
refurl: /html/rendering/non-replaced-elements/tables/table-width-150percent-ref.html
expected: FAIL
expected: PASS