Summary: | text-decoration-thickness does not render properly with display flex or grid | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sam Warnick <sam> | ||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | fantasai.bugs, karlcow, koivisto, sgill26, vitor.roriz, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
Version: | Safari 17 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Sam Warnick
2024-07-02 16:16:11 PDT
Created attachment 471803 [details]
rendering in safari, firefox, chrome
Safari Technology Preview 197 20619.1.18
Firefox Nightly 129.0a1 12924.6.27
Google Chrome Canary 128.0.6572.0 6572.0
with the code in the example being
<style>a {text-decoration-thickness: 4px;}</style>
<a href="#" style="display: block">block</a>
<a href="#" style="display: flex">flex</a>
<a href="#" style="display: grid">grid</a>
Guessing we need to update this code here? TextDecorationPainter.cpp/ collectStylesForRenderer() https://searchfox.org/wubkat/source/Source/WebCore/rendering/TextDecorationPainter.cpp#323 There are multiple issues around this depending on the browser, the text and the font-size. https://codepen.io/webcompat/pen/mdYNjKa |