diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-11-27 18:25:50 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-11-27 18:25:50 +0100 |
commit | 72608d2fd25a499afa07cec172088b75174d4ae4 (patch) | |
tree | fd5f4da9de0c3188a2ed7d653cc84ee5bdfe0438 /src | |
parent | a0635d1f4b7fa7aa8396e1de590174fb840b205c (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')
-rw-r--r-- | src/css.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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}" |