summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-11-27 18:25:50 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-11-27 18:25:50 +0100
commit72608d2fd25a499afa07cec172088b75174d4ae4 (patch)
treefd5f4da9de0c3188a2ed7d653cc84ee5bdfe0438 /src/css.cc
parenta0635d1f4b7fa7aa8396e1de590174fb840b205c (diff)
fix nested <ul> handling in user agent style
Originally I hoped that <ul> elements would be nested like this: <ul> <li>foo</li> <ul> <li>bar</li> </ul> </ul> in which case we could use ul > ul. But instead it seems to be common to use: <ul> <li>foo</li> <li> <ul> <li>bar</li> </ul> </li> </ul> The child selector ('>') is slightly more efficient than the general descendant (' ') selector, but it doesn't seem to matter much anyway.
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css.cc b/src/css.cc
index 617de1dc..0ac8e603 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -572,9 +572,9 @@ void CssContext::buildUserAgentStyle () {
"pre {white-space: pre}"
"ol {list-style-type: decimal}"
"ul {list-style-type: disc}"
- "ul > ul {list-style-type: circle}"
- "ul > ul > ul {list-style-type: square}"
- "ul > ul > ul > ul {list-style-type: disc}"
+ "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}"
"small, sub, sup {font-size: 0.83em}"
"sub {vertical-align: sub}"