The Big Changes (on both sides)
David Hyatt
hyatt@apple.com
Thu, 9 Jan 2003 00:07:36 -0800
On Wednesday, January 8, 2003, at 11:59 PM, Dirk Mueller wrote:
> - Reworked the list-style-position quirk for orphaned <li>s to not use
> CSS.
>
> why?
>
<li><ol><li>foo
If you change the orphaned outer <li> to have a list-style-position of
inside, then the <li> inside the <ol> inherits that inside position
(improperly). Gecko solved this by implementing a bunch of style rules
(using descendant selectors). We thought it was cleaner to just hack
it at the rendering level, thus ensuring that intermediate orphaned
<li>s never have any effect on the inheritance of the
list-style-position property.
dave