Bug 304550

Summary: anchor tag overriding parent's text-decoration-style that overlaps with the anchor
Product: WebKit Reporter: github
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, fantasai.bugs, karlcow, koivisto, simon.fraser, vitor.roriz, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 26   
Hardware: Unspecified   
OS: Unspecified   
URL: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14407
Bug Depends on:    
Bug Blocks: 305077    
Attachments:
Description Flags
rendering of the example described in the comment none

github
Reported 2025-12-20 10:52:54 PST
Created attachment 477805 [details] rendering of the example described in the comment When an anchor tag has a text decoration that differs from its parent in line and in style, the parent's line that crosses the anchor tag gets the decoration style as is set by the anchor tag. E.g. something like the following: <style> span { text-decoration: line-through solid; -webkit-text-decoration: line-through solid; } a { text-decoration: underline dotted; -webkit-text-decoration: underline dotted; } </style> <span>some text and <a>a link</a></span> FWIW, with Firefox and Chrome, the text-decoration-line is not affected by the line style of the anchor tag.
Attachments
rendering of the example described in the comment (21.83 KB, image/png)
2025-12-20 10:52 PST, github
no flags
Radar WebKit Bug Importer
Comment 1 2025-12-27 10:53:12 PST
Note You need to log in before you can comment on or make changes to this bug.