mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
commit
c1e15e827e
13 changed files with 160 additions and 36 deletions
|
@ -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
|
||||
|
|
20
tests/ref/servo_center_a.html
Normal file
20
tests/ref/servo_center_a.html
Normal 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>
|
||||
|
18
tests/ref/servo_center_ref.html
Normal file
18
tests/ref/servo_center_ref.html
Normal 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>
|
||||
|
||||
|
15
tests/ref/table_width_attribute_a.html
Normal file
15
tests/ref/table_width_attribute_a.html
Normal 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>
|
||||
|
||||
|
16
tests/ref/table_width_attribute_ref.html
Normal file
16
tests/ref/table_width_attribute_ref.html
Normal 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>
|
||||
|
||||
|
|
@ -2,4 +2,4 @@
|
|||
type: reftest
|
||||
reftype: ==
|
||||
refurl: /html/rendering/non-replaced-elements/tables/table-width-150percent-ref.html
|
||||
expected: FAIL
|
||||
expected: PASS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue