Bug 163789

Summary: RenderListItem's marker is not at the right insertion point.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: hyatt, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

zalan
Reported 2016-10-21 09:35:10 PDT
First of all, RenderListItem mutates the render tree during layout (which should be avoided) While finding the right insertion point for its marker, we construct/destroy (block/inline) wrappers (RenderListItem::insertOrMoveMarkerRendererIfNeeded). We do all this before laying out the descendants. However since the the insertion point depends on the linebox context, we can't really be sure that the insertion point we found is still valid after we finished with the descendants. So the marker (RenderTree) position does not necessarily reflect the current layout but the previous one. For certain type of style changes, it could always be one layout behind.
Attachments
Note You need to log in before you can comment on or make changes to this bug.