aboutsummaryrefslogtreecommitdiff
path: root/test/html
diff options
context:
space:
mode:
Diffstat (limited to 'test/html')
-rw-r--r--test/html/Makefile.am1
-rw-r--r--test/html/render/main-style.html20
-rw-r--r--test/html/render/main-style.ref.html20
3 files changed, 41 insertions, 0 deletions
diff --git a/test/html/Makefile.am b/test/html/Makefile.am
index 0b124fc1..43417ce6 100644
--- a/test/html/Makefile.am
+++ b/test/html/Makefile.am
@@ -11,6 +11,7 @@ TESTS = \
render/float-img-justify.html \
render/hackernews.html \
render/img-aspect-ratio.html \
+ render/main-style.html \
render/margin-auto.html \
render/max-width-body.html \
render/max-width-div.html \
diff --git a/test/html/render/main-style.html b/test/html/render/main-style.html
new file mode 100644
index 00000000..62159235
--- /dev/null
+++ b/test/html/render/main-style.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Main should behave like a div</title>
+ </head>
+ <body>
+ <div style="margin-left: 20em; background: lightgreen">
+ div
+ </div>
+ <main style="margin-left: 20em; background: lightgreen">
+ main
+ </main>
+ <header style="margin-left: 20em; background: lightgreen">
+ header
+ </header>
+ <footer style="margin-left: 20em; background: lightgreen">
+ footer
+ </footer>
+ </body>
+</html>
diff --git a/test/html/render/main-style.ref.html b/test/html/render/main-style.ref.html
new file mode 100644
index 00000000..0840e433
--- /dev/null
+++ b/test/html/render/main-style.ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Main should behave like a div</title>
+ </head>
+ <body>
+ <div style="margin-left: 20em; background: lightgreen">
+ div
+ </div>
+ <div style="margin-left: 20em; background: lightgreen">
+ main
+ </div>
+ <div style="margin-left: 20em; background: lightgreen">
+ header
+ </div>
+ <div style="margin-left: 20em; background: lightgreen">
+ footer
+ </div>
+ </body>
+</html>