Bug 257992 - text-decoration-thickness not properly propagated to inner spans with non-inline style
Summary: text-decoration-thickness not properly propagated to inner spans with non-inl...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-06-12 17:32 PDT by Jon Lee
Modified: 2023-11-13 01:22 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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