diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-03-31 23:33:15 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-03-31 23:45:46 +0200 |
commit | b55dc711c6c4d8bc47b7ac2c9cf303c4dbf822f3 (patch) | |
tree | c8c9d43026481cd76ec15644a468cd2865520204 /test/html/render | |
parent | c54576fb442f1198b70fc7f3021d2bbeaa2fc045 (diff) |
Add support for the main HTML tag
Fixes: https://github.com/dillo-browser/dillo/issues/109
Diffstat (limited to 'test/html/render')
-rw-r--r-- | test/html/render/main-style.html | 20 | ||||
-rw-r--r-- | test/html/render/main-style.ref.html | 20 |
2 files changed, 40 insertions, 0 deletions
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> |