Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 29dd8ac92d9121df66d7720fecb812070f726416
https://github.com/WebKit/WebKit/commit/29dd8ac92d9121df66d7720fecb812070f726416
Author: Alan Baradlay <[email protected]>
Date: 2025-01-06 (Mon, 06 Jan 2025)
Changed paths:
A LayoutTests/fast/inline/rel-inline-with-abs-pos-child-sizing-expected.html
A LayoutTests/fast/inline/rel-inline-with-abs-pos-child-sizing.html
M Source/WebCore/rendering/RenderBox.cpp
Log Message:
-----------
Compute out-of-flow box width correctly when it is inside inline continuation
https://bugs.webkit.org/show_bug.cgi?id=285304
Reviewed by Antti Koivisto.
Use the correct containing block (positioned inline box) when the out-of-flow
box is inside
continuation.
e.g.
<span rel_pos><div><div abs_pos>
->
pre block (anon)
span
middle block (anon)
div
div abs_pos
post block (anon)
span
and we end up finding the middle block (anon) as the containing block of the
out-of-flow box (it is also relatively positioned as its style gets propagated
from the root of the continuation).
However what we should find is the relatively positioned inline box (span).
* LayoutTests/fast/inline/rel-inline-with-abs-pos-child-sizing-expected.html:
Added.
* LayoutTests/fast/inline/rel-inline-with-abs-pos-child-sizing.html: Added.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::containingBlockLogicalWidthForPositioned const):
Canonical link: https://commits.webkit.org/288464@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes