Skip to content

Commit 5fcd206

Browse files
campaulrodarima
authored andcommitted
Add HTML test for text-align: center
See: #410
1 parent 3b0fbaa commit 5fcd206

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

test/html/Makefile.am

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,18 @@ TESTS = \
4646
render/table-td-width-percent.html \
4747
render/table-thead-tfoot.html \
4848
render/table-thead-tfoot-open-tag.html \
49+
render/text-align-center.html \
4950
render/white-space.html
5051

5152
# To be fixed
5253
XFAIL_TESTS = \
5354
render/div-100-percent-with-padding.html \
5455
render/float-img-justify.html \
55-
render/margin-rounding.html \
5656
render/margin-auto.html \
57+
render/margin-rounding.html \
5758
render/max-width-html.html \
5859
render/min-width-html.html \
5960
render/multiple-floats.html \
6061
render/span-padding.html \
61-
render/table-td-width-percent.html
62+
render/table-td-width-percent.html \
63+
render/text-align-center.html
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Test text-align: center</title>
5+
<style>
6+
.outer {
7+
background-color:coral;
8+
width: 400px;
9+
}
10+
.inner {
11+
background-color:aquamarine;
12+
text-align: center;
13+
width: 100px;
14+
}
15+
</style>
16+
</head>
17+
<body>
18+
<div class="outer">
19+
<div class="inner">center</div>
20+
</div>
21+
</html>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Test text-align: center</title>
5+
<style>
6+
table, tr, td {
7+
border-spacing: 0;
8+
margin: 0;
9+
padding: 0;
10+
}
11+
.outer {
12+
background-color:coral;
13+
width: 400px;
14+
}
15+
.inner {
16+
background-color:aquamarine;
17+
text-align: center;
18+
width: 100px;
19+
}
20+
</style>
21+
</head>
22+
<body>
23+
<table class="outer">
24+
<tr><td class="inner">center</td><td></td></tr>
25+
</table>
26+
</body>
27+
</html>

0 commit comments

Comments
 (0)