[Webkit-unassigned] [Bug 36724] Add support for <ol reversed>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 17:42:46 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36724





--- Comment #14 from Darin Adler <darin at apple.com>  2010-05-07 17:42:46 PST ---
(In reply to comment #13)
> "The default value, used if the attribute is missing or if the value cannot be
> converted to a number according to the referenced algorithm, is 1 if the
> element has no reversed attribute, and is the number of child li elements
> otherwise."

This start attribute is an example, then, of something in the DOM API that
requires that the render tree be up to date to give a correct response. Thus I
think we'll need a call to updateLayout for the same reason that functions like
Element::offsetHeight do.

Except that it specifically says the "number of child li elements", which
ignores the CSS "display: list-item".

If the text is really intentional about stating the number of child li
elements, then we should remove all the code and smarts that use the render
tree and create test cases that demonstrate the incorrect looking numbering you
get when there are "display: list-item" items that are not li elements.

> > It's also not great that the item count is stored in the DOM tree when it's
> > dependent on the rendering. The count should be stored in the render tree even
> > if the DOM tree might access it. I think this belongs in the renderer class for
> > the list not the DOM class.
> 
> Yeah, I agree with that. I'm going to refactor it into a RenderList class that
> will serve as a renderer for lists.

Now I’m a little worried about my suggestion. If there is not already a
RenderList class, then allocating a renderer of that class instead of the
renderer type that we are already creating might be a problem for lists that
have CSS "display: inline" or something like that applied to them.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list