diff options
-rw-r--r-- | test/html/Makefile.am | 2 | ||||
-rw-r--r-- | test/html/render/div-100-percent-with-padding.html | 29 | ||||
-rw-r--r-- | test/html/render/div-100-percent-with-padding.ref.html | 29 |
3 files changed, 60 insertions, 0 deletions
diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 28548f83..9b02f550 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -7,6 +7,7 @@ LOG_COMPILER = $(srcdir)/driver.sh TESTS = \ render/b-div.html \ + render/div-100-percent-with-padding.html \ render/float-img-justify.html \ render/img-aspect-ratio.html \ render/margin-auto.html \ @@ -26,6 +27,7 @@ TESTS = \ # To be fixed XFAIL_TESTS = \ + render/div-100-percent-with-padding.html \ render/float-img-justify.html \ render/img-aspect-ratio.html \ render/margin-auto.html \ diff --git a/test/html/render/div-100-percent-with-padding.html b/test/html/render/div-100-percent-with-padding.html new file mode 100644 index 00000000..ef8c90a1 --- /dev/null +++ b/test/html/render/div-100-percent-with-padding.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test padding in 100% width div</title> + <style> + body {margin: 0px} + .test { + width: 100%; + margin: 50px; + padding: 50px; + background: lightgreen; + border: solid 1px; + } + </style> + </head> + <body> + <div class="test"> + <p>The licenses for most software and other practical works are + designed to take away your freedom to share and change the works. + By contrast, the GNU General Public License is intended to + guarantee your freedom to share and change all versions of a + program--to make sure it remains free software for all its users. + We, the Free Software Foundation, use the GNU General Public + License for most of our software; it applies also to any other + work released this way by its authors. You can apply it to your + programs, too.</p> + </div> + </body> +</html> diff --git a/test/html/render/div-100-percent-with-padding.ref.html b/test/html/render/div-100-percent-with-padding.ref.html new file mode 100644 index 00000000..e6d93e46 --- /dev/null +++ b/test/html/render/div-100-percent-with-padding.ref.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html> + <head> + <title>Test padding in 100% width div</title> + <style> + body {margin: 0px} + .test { + width: 800px; + margin: 50px; + padding: 50px; + background: lightgreen; + border: solid 1px; + } + </style> + </head> + <body> + <div class="test"> + <p>The licenses for most software and other practical works are + designed to take away your freedom to share and change the works. + By contrast, the GNU General Public License is intended to + guarantee your freedom to share and change all versions of a + program--to make sure it remains free software for all its users. + We, the Free Software Foundation, use the GNU General Public + License for most of our software; it applies also to any other + work released this way by its authors. You can apply it to your + programs, too.</p> + </div> + </body> +</html> |