Bug 257992

Summary: text-decoration-thickness not properly propagated to inner spans with non-inline style
Product: WebKit Reporter: Jon Lee <jonlee554>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, karlcow, kizmarh, koivisto, mmaxfield, ntim, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=250831
https://bugs.webkit.org/show_bug.cgi?id=264245

Description Jon Lee 2023-06-12 17:32:34 PDT
https://codepen.io/legion80/pen/YzRyqJO
compare with Chrome and Firefox.

The structure is <a><span></span></a> with CSS text-decoration-thickness set.

If the span is inline, the style is propagated. If the style is inline-block, the decoration is removed (consistent across all browsers). If the style is block, the style is not propagated in Safari, but is propagated in Chrome and Firefox.
Comment 1 Radar WebKit Bug Importer 2023-06-19 17:33:16 PDT
<rdar://problem/111015539>
Comment 2 Ahmad Saleem 2023-06-22 15:01:43 PDT
https://github.com/WebKit/WebKit/blob/6172ecd8b1485a5387d034f7e623a36b8f5a45fc/Source/WebCore/style/StyleAdjuster.cpp#L187 by adding ‘DisplayType::Block’?

^ Something here to also inherit text decoration effects?
Comment 3 Tim Nguyen (:ntim) 2023-11-13 01:21:26 PST
Very likely same regression range as bug 250831