Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 62aed266db252772eba4e77a6aa2874f99d96b1f
      
https://github.com/WebKit/WebKit/commit/62aed266db252772eba4e77a6aa2874f99d96b1f
  Author: Alan Baradlay <[email protected]>
  Date:   2025-12-01 (Mon, 01 Dec 2025)

  Changed paths:
    A LayoutTests/fast/inline/text-box-trim-with-underline3-expected.html
    A LayoutTests/fast/inline/text-box-trim-with-underline3.html
    M LayoutTests/platform/ios/TestExpectations
    M Source/WebCore/style/InlineTextBoxStyle.cpp

  Log Message:
  -----------
  Text box makes text-decoration:underline higher than it should be
https://bugs.webkit.org/show_bug.cgi?id=303082
<rdar://problem/165614136>

Reviewed by Antti Koivisto.

When text-box-trim is applied to the root inline box, we move the entire box 
with its
content. In such case we don't need to offset the underline unlike when the 
content moves
within the root inline box (when text-box-trim is on a non-root inline box).

Test: fast/inline/text-box-trim-with-underline3.html

* LayoutTests/fast/inline/text-box-trim-with-underline3-expected.html: Added.
* LayoutTests/fast/inline/text-box-trim-with-underline3.html: Added.
* LayoutTests/platform/ios/TestExpectations:
* Source/WebCore/style/InlineTextBoxStyle.cpp:
(WebCore::underlineOffsetForTextBoxPainting):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to