aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/html/Makefile.am6
-rw-r--r--test/html/render/text-align-center.html21
-rw-r--r--test/html/render/text-align-center.ref.html27
3 files changed, 52 insertions, 2 deletions
diff --git a/test/html/Makefile.am b/test/html/Makefile.am
index 42006368..e9f9ef4c 100644
--- a/test/html/Makefile.am
+++ b/test/html/Makefile.am
@@ -46,16 +46,18 @@ TESTS = \
render/table-td-width-percent.html \
render/table-thead-tfoot.html \
render/table-thead-tfoot-open-tag.html \
+ render/text-align-center.html \
render/white-space.html
# To be fixed
XFAIL_TESTS = \
render/div-100-percent-with-padding.html \
render/float-img-justify.html \
- render/margin-rounding.html \
render/margin-auto.html \
+ render/margin-rounding.html \
render/max-width-html.html \
render/min-width-html.html \
render/multiple-floats.html \
render/span-padding.html \
- render/table-td-width-percent.html
+ render/table-td-width-percent.html \
+ render/text-align-center.html
diff --git a/test/html/render/text-align-center.html b/test/html/render/text-align-center.html
new file mode 100644
index 00000000..2924df51
--- /dev/null
+++ b/test/html/render/text-align-center.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test text-align: center</title>
+ <style>
+ .outer {
+ background-color:coral;
+ width: 400px;
+ }
+ .inner {
+ background-color:aquamarine;
+ text-align: center;
+ width: 100px;
+ }
+ </style>
+ </head>
+ <body>
+ <div class="outer">
+ <div class="inner">center</div>
+ </div>
+</html>
diff --git a/test/html/render/text-align-center.ref.html b/test/html/render/text-align-center.ref.html
new file mode 100644
index 00000000..f0048d42
--- /dev/null
+++ b/test/html/render/text-align-center.ref.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test text-align: center</title>
+ <style>
+ table, tr, td {
+ border-spacing: 0;
+ margin: 0;
+ padding: 0;
+ }
+ .outer {
+ background-color:coral;
+ width: 400px;
+ }
+ .inner {
+ background-color:aquamarine;
+ text-align: center;
+ width: 100px;
+ }
+ </style>
+ </head>
+ <body>
+ <table class="outer">
+ <tr><td class="inner">center</td><td></td></tr>
+ </table>
+ </body>
+</html>