changeset 1447:ddc598db32da

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.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 27 Nov 2009 18:25:50 +0100
parents 90fabbb4077b
children f3c0bedc151c
files src/css.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Sun Nov 22 18:35:48 2009 +0100
+++ b/src/css.cc	Fri Nov 27 18:25:50 2009 +0100
@@ -572,9 +572,9 @@
      "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}"