summaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorcorvid <corvid@dillo.org>2013-09-05 19:19:28 +0000
committercorvid <corvid@dillo.org>2013-09-05 19:19:28 +0000
commit249ddc27f05bc334bc554a692e6b2d541053afb3 (patch)
tree6d8bc879e05f46482957a1819eee312a985cafcf /src/styleengine.cc
parent75ad99f0389fb9f7434cfbefa205b1636d4ee1f1 (diff)
some html5 structural elements
The spec also has some rules about how, for instance, a footer can't go inside a header, and that sort of thing, but that can wait until we have something more sophisticated than a collection of IN_* flags.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index b3ea8b3b..50bd4cb7 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -830,7 +830,9 @@ void StyleEngine::buildUserAgentStyle () {
":link {color: blue; text-decoration: underline; cursor: pointer}"
":visited {color: #800080; text-decoration: underline; cursor: pointer}"
"h1, h2, h3, h4, h5, h6, b, strong {font-weight: bolder}"
- "address, center, div, h1, h2, h3, h4, h5, h6, ol, p, ul, pre {display: block}"
+ "address, article, aside, center, div, figure, figcaption, footer,"
+ " h1, h2, h3, h4, h5, h6, header, nav, ol, p, pre, section, ul"
+ " {display: block}"
"i, em, cite, address, var {font-style: italic}"
":link img, :visited img {border: 1px solid}"
"frameset, ul, ol, dir {margin-left: 40px}"
@@ -839,6 +841,7 @@ void StyleEngine::buildUserAgentStyle () {
* look better like this.
*/
"p {margin: 0.5em 0}"
+ "figure {margin: 1em 40px}"
"h1 {font-size: 2em; margin-top: .67em; margin-bottom: 0}"
"h2 {font-size: 1.5em; margin-top: .75em; margin-bottom: 0}"
"h3 {font-size: 1.17em; margin-top: .83em; margin-bottom: 0}"