Bug 303082

Summary: Text box makes text-decoration:underline higher than it should be
Product: WebKit Reporter: Rogier de Ruijter <imbashenk>
Component: Layout and RenderingAssignee: alan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, bfulgham, fantasai.bugs, koivisto, simon.fraser, vitor.roriz, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac (Apple Silicon)   
OS: iOS 26   
URL: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14329
Attachments:
Description Flags
Patch
none
[fast-cq]Patch none

Rogier de Ruijter
Reported 2025-11-24 23:35:48 PST
The css property `text-box` effects the underline property. The underline is higher than it is supposed to be. Below a reproduction can be found ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Text box: underline safari</title> </head> <body> <h1>My text box</h1> </body> <style> html { background-color: #FAF9F6; } h1 { text-decoration: underline; text-box: trim-both cap alphabetic; } </style> </html> ```
Attachments
Patch (4.38 KB, patch)
2025-12-01 06:09 PST, alan
no flags
[fast-cq]Patch (5.61 KB, patch)
2025-12-01 10:42 PST, alan
no flags
Radar WebKit Bug Importer
Comment 1 2025-12-01 05:28:05 PST
alan
Comment 2 2025-12-01 06:09:49 PST
alan
Comment 3 2025-12-01 06:11:33 PST
Thank you for filing this bug report. great test reduction!
alan
Comment 4 2025-12-01 10:42:53 PST
Created attachment 477572 [details] [fast-cq]Patch
EWS
Comment 5 2025-12-01 15:31:23 PST
Committed 303710@main (62aed266db25): <https://commits.webkit.org/303710@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 477572 [details].
Note You need to log in before you can comment on or make changes to this bug.