Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 845882297cd22aeb22135aecf95aebbe4638842a
      
https://github.com/WebKit/WebKit/commit/845882297cd22aeb22135aecf95aebbe4638842a
  Author: Alan Baradlay <[email protected]>
  Date:   2026-08-28 (Fri, 28 Aug 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagated-ink-overflow-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagated-ink-overflow.html
    M 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp

  Log Message:
  -----------
  [css-text-decor] Negative text-decoration-inset is clipped when the 
decoration propagates to a descendant inline box
https://bugs.webkit.org/show_bug.cgi?id=322718
<rdar://problem/185985708>

Reviewed by Antti Koivisto.

collectInkOverflowForTextDecorations() measured each text box's decoration 
overflow
from displayBox.layoutBox().parent().style(). The decoration properties are not
inherited, so when a decoration propagates from an ancestor to a descendant 
inline box
that immediate parent carries the initial values, and the overflow came out too 
small.
The decoration was still painted in the right place - TextBoxPainter walks up 
to the
originating box - so it got clipped to the undersized overflow instead.

Test: 
imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagated-ink-overflow.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagated-ink-overflow.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-propagated-ink-overflow-expected.html:
 Added.
* 
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::collectInkOverflowForTextDecorations):

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



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

Reply via email to