aboutsummaryrefslogtreecommitdiff
path: root/test/html/render
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-02-01 18:53:08 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-02-01 18:53:08 +0100
commit9803318b28b5a3ef29987a093c38c5132ada1138 (patch)
tree6f379525e7c0d5f3111f0609e60c1270d7c7dd50 /test/html/render
parent8f84a4d8bc90eadc41925476d0e3cc6c450ec7fe (diff)
Add margin auto HTML render test
Diffstat (limited to 'test/html/render')
-rw-r--r--test/html/render/margin-auto.html16
-rw-r--r--test/html/render/margin-auto.ref.html16
2 files changed, 32 insertions, 0 deletions
diff --git a/test/html/render/margin-auto.html b/test/html/render/margin-auto.html
new file mode 100644
index 00000000..560234c0
--- /dev/null
+++ b/test/html/render/margin-auto.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test CSS margin auto</title>
+ <style>
+ div {height:100px}
+ .container {width:300px; background: lightgreen}
+ .child {width:100px; background: brown; margin:auto }
+ </style>
+ </head>
+ <body>
+ <div class="container">
+ <div class="child"></div>
+ </div>
+ </body>
+</html>
diff --git a/test/html/render/margin-auto.ref.html b/test/html/render/margin-auto.ref.html
new file mode 100644
index 00000000..ec7b973d
--- /dev/null
+++ b/test/html/render/margin-auto.ref.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test CSS margin auto</title>
+ <style>
+ div {height:100px}
+ .container {width:300px; background: lightgreen}
+ .child {width:100px; background: brown; margin-left:100px; margin-right:100px }
+ </style>
+ </head>
+ <body>
+ <div class="container">
+ <div class="child"></div>
+ </div>
+ </body>
+</html>