Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 35a3dec2b907fc94aa3765a0b3a141affef3d355
      
https://github.com/WebKit/WebKit/commit/35a3dec2b907fc94aa3765a0b3a141affef3d355
  Author: Alan Baradlay <za...@apple.com>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-both-with-bottom-aligned-box-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-both-with-bottom-aligned-box-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-both-with-bottom-aligned-box.html
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.h

  Log Message:
  -----------
  content shifted downward with text-box-trim and vertical-align:bottom
https://bugs.webkit.org/show_bug.cgi?id=290727#
<rdar://problem/148604811>

Reviewed by Antti Koivisto.

Inline level box coords are relative to the top/left corner of the line box but
bottom aligned boxes are in practice anchored to the bottom.

Let's adjust such, bottom aligned content when line box moves up while getting 
trimmed.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-both-with-bottom-aligned-box-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-both-with-bottom-aligned-box-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-inline/text-box-trim/text-box-trim-both-with-bottom-aligned-box.html:
 Added.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::applyTextBoxTrimOnLineBoxIfNeeded const):
(WebCore::Layout::LineBoxBuilder::computeLineBoxGeometry const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.h:

Canonical link: https://commits.webkit.org/293283@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to