RESOLVED CONFIGURATION CHANGED 23950
Relative positioned objects inside inlines not properly counted in document width/height
https://bugs.webkit.org/show_bug.cgi?id=23950
Summary Relative positioned objects inside inlines not properly counted in document w...
Dave Hyatt
Reported 2009-02-13 09:42:59 PST
lowest/rightmost/topmost/leftmostPosition all have a bug where a relatively positioned object inside an inline does not properly get accounted for.
Attachments
Test Case (154 bytes, text/html)
2009-02-13 09:43 PST, Dave Hyatt
no flags
Dave Hyatt
Comment 1 2009-02-13 09:43:20 PST
Created attachment 27663 [details] Test Case
Dave Hyatt
Comment 2 2009-02-13 09:47:12 PST
The bug is here: for (RenderObject* c = firstChild(); c; c = c->nextSibling()) { if (!c->isFloatingOrPositioned() && !c->isText() && !c->isRenderInline()) bottom = max(bottom, toRenderBox(c)->y() + c->lowestPosition(false)); } We just skip over inlines. The above code should really only run when children aren't inline. We should walk line boxes in the other case looking for RenderBoxes.
Dave Hyatt
Comment 3 2009-02-13 09:49:40 PST
Really we should just find a way to deal with relative positioned kids via the layer tree, so that we don't have to recur into kids at all. The only reason we recur into immediate children is because of relative positioning.
Robert Hogan
Comment 4 2012-10-02 11:48:58 PDT
This looks like it is fixed to me now. OK to close?
Ahmad Saleem
Comment 5 2023-03-17 18:18:08 PDT
WebKit ToT (261814@main) matching with other browsers (Chrome Canary 113 and Firefox Nightly 113). Marking this as “RESOLVED CONFIGURATION CHANGED”. Thanks!
Note You need to log in before you can comment on or make changes to this bug.