summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-03-17 16:23:29 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-03-17 19:36:22 +0100
commit62a9224a358a523e669e8c9f6158564f01b420c9 (patch)
tree5e9ec70209b28b65243c4fbe7fef2e5459acb65e
parentd61bf779f41617bbc31c3c5697e9275a6fbb1bcd (diff)
Add div-100-percent-with-padding test
-rw-r--r--test/html/Makefile.am2
-rw-r--r--test/html/render/div-100-percent-with-padding.html29
-rw-r--r--test/html/render/div-100-percent-with-padding.ref.html29
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>