Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 47cabefff98eaaee341ee23e5715918170a2236d
https://github.com/WebKit/WebKit/commit/47cabefff98eaaee341ee23e5715918170a2236d
Author: Alan Baradlay <[email protected]>
Date: 2025-04-29 (Tue, 29 Apr 2025)
Changed paths:
A
LayoutTests/fast/inline/negative-text-indent-triggers-content-wrap-expected.html
A LayoutTests/fast/inline/negative-text-indent-triggers-content-wrap.html
M Source/WebCore/rendering/RenderBlockFlow.cpp
Log Message:
-----------
[text-indent] Unexpected line breaking when text-indent has negative value
https://bugs.webkit.org/show_bug.cgi?id=292236
Reviewed by Antti Koivisto.
Decouple min and max width handling with text-indent.
text-indent logic in computeInlinePreferredLogicalWidths assumes that min and
max values
of a child box are always the same so that they clear the negative text-indent
value
at the same time (the min value is used as base and we just offset the max
value using the diff).
*
LayoutTests/fast/inline/negative-text-indent-triggers-content-wrap-expected.html:
Added.
* LayoutTests/fast/inline/negative-text-indent-triggers-content-wrap.html:
Added.
* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths const):
Canonical link: https://commits.webkit.org/294296@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