aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-09-06 12:19:55 +0200
committerSebastian Geerken <devnull@localhost>2013-09-06 12:19:55 +0200
commit8949f7c58340b0c468fde3ea4bc1b23352f55b88 (patch)
tree0124c2d94106cbb3c0fb44f9a42e221575d955fd /src/styleengine.cc
parenta8d6e82558673ee440dcdeb82a72166732f12af1 (diff)
parent5768a90c1502da9324fe35246bf1ed743a17c68d (diff)
Merge with main repo.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 22dbbf7e..8817479f 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -851,7 +851,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}"
@@ -860,6 +862,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}"
@@ -874,11 +877,15 @@ void StyleEngine::buildUserAgentStyle () {
"ul ul {list-style-type: circle}"
"ul ul ul {list-style-type: square}"
"ul ul ul ul {list-style-type: disc}"
- "u {text-decoration: underline}"
+ "ins, u {text-decoration: underline}"
"small, sub, sup {font-size: 0.83em}"
"sub {vertical-align: sub}"
"sup {vertical-align: super}"
"s, strike, del {text-decoration: line-through}"
+ /* HTML5 spec notes that mark styling "is just a suggestion and can be
+ * changed based on implementation feedback"
+ */
+ "mark {background: yellow; color: black;}"
"table {border-spacing: 2px}"
"td, th {padding: 2px}"
"thead, tbody, tfoot {vertical-align: middle}"