diff options
author | Cameron Paul <cpaul37@gmail.com> | 2025-06-15 10:46:36 -0500 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-06-16 20:16:33 +0200 |
commit | 5fcd2063ee3b17ef6d6909f33ee0bf6d3bb02fa6 (patch) | |
tree | e6c40da0fb032f494088301d48f3cd9df645efe6 /test/html/render | |
parent | 3b0fbaaa03c55b0a0a97f041e1e7d7dfe9f3e0e2 (diff) |
Add HTML test for text-align: center
See: https://github.com/dillo-browser/dillo/issues/410
Diffstat (limited to 'test/html/render')
-rw-r--r-- | test/html/render/text-align-center.html | 21 | ||||
-rw-r--r-- | test/html/render/text-align-center.ref.html | 27 |
2 files changed, 48 insertions, 0 deletions
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> |