Incorrect thickness of links underline (often the underlines are too thin)
Categories
(Core :: Layout: Text and Fonts, enhancement)
Tracking
()
People
(Reporter: 5silentrain, Unassigned)
Details
Attachments
(30 files)
|
59.58 KB,
image/png
|
Details | |
|
55.72 KB,
image/png
|
Details | |
|
55.38 KB,
image/png
|
Details | |
|
239.07 KB,
image/png
|
Details | |
|
237.60 KB,
image/png
|
Details | |
|
235.98 KB,
image/png
|
Details | |
|
87.63 KB,
image/png
|
Details | |
|
85.33 KB,
image/png
|
Details | |
|
85.16 KB,
image/png
|
Details | |
|
18.59 KB,
image/png
|
Details | |
|
18.15 KB,
image/png
|
Details | |
|
19.24 KB,
image/png
|
Details | |
|
81.24 KB,
image/png
|
Details | |
|
79.54 KB,
image/png
|
Details | |
|
92.31 KB,
image/png
|
Details | |
|
106.50 KB,
image/png
|
Details | |
|
101.29 KB,
image/png
|
Details | |
|
103.01 KB,
image/png
|
Details | |
|
73.66 KB,
image/png
|
Details | |
|
68.39 KB,
image/png
|
Details | |
|
64.88 KB,
image/png
|
Details | |
|
114.69 KB,
image/png
|
Details | |
|
109.30 KB,
image/png
|
Details | |
|
99.17 KB,
image/png
|
Details | |
|
10.54 KB,
image/png
|
Details | |
|
10.27 KB,
image/png
|
Details | |
|
10.82 KB,
image/png
|
Details | |
|
465.88 KB,
image/png
|
Details | |
|
464.02 KB,
image/png
|
Details | |
|
454.65 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/107.0
Steps to reproduce:
I started to notice a long time ago that in FF the underline thickness of different links looks ugly and wrong compared to Chrome and Safari. Here are some examples:
https://steelseries.com/gaming-mice
https://www.google.com/search?client=firefox-b-d&q=apple
Screenshots:
Firefox: https://i.imgur.com/ww8QBQ9.png
Chrome: https://i.imgur.com/ayJTo3t.png
Safari: https://i.imgur.com/JT9IZNv.png
Firefox: https://i.imgur.com/6cz84sp.png
Chrome: https://i.imgur.com/ftIgscN.png
Safari: https://i.imgur.com/PMNnKaL.png
Firefox: https://i.imgur.com/8KhSrsi.png
Chrome: https://i.imgur.com/uQ3adOx.png
Safari: https://i.imgur.com/SwLRWF3.png
Firefox: https://i.imgur.com/tKhIoM3.png
Chrome: https://i.imgur.com/PlwATf8.png
Safari: https://i.imgur.com/qPowVsM.png
| Reporter | ||
Comment 1•3 years ago
|
||
| Reporter | ||
Comment 2•3 years ago
|
||
| Reporter | ||
Comment 3•3 years ago
|
||
| Reporter | ||
Comment 4•3 years ago
|
||
| Reporter | ||
Comment 5•3 years ago
|
||
| Reporter | ||
Comment 6•3 years ago
|
||
| Reporter | ||
Comment 7•3 years ago
|
||
| Reporter | ||
Comment 8•3 years ago
|
||
| Reporter | ||
Comment 9•3 years ago
|
||
| Reporter | ||
Comment 10•3 years ago
|
||
| Reporter | ||
Comment 11•3 years ago
|
||
| Reporter | ||
Comment 12•3 years ago
|
||
| Reporter | ||
Comment 13•3 years ago
|
||
On Wikipedia: https://en.wikipedia.org/wiki/Loona
Link underlines are too thin, which is especially noticeable on monitors with a high pixel density (my monitor LG 27UP650-W has 163 PPI). Looks terrible!!!
Firefox: https://i.imgur.com/4Mlcwan.png
Chrome: https://i.imgur.com/ZlIMoIf.png
Safari: https://i.imgur.com/zMN9DTt.png
Firefox: https://i.imgur.com/eO6p0Ox.png
Chrome: https://i.imgur.com/gJIFcao.png
Safari: https://i.imgur.com/wOnu8Eb.png
| Reporter | ||
Comment 14•3 years ago
|
||
| Reporter | ||
Comment 15•3 years ago
|
||
| Reporter | ||
Comment 16•3 years ago
|
||
| Reporter | ||
Comment 17•3 years ago
|
||
| Reporter | ||
Comment 18•3 years ago
|
||
| Reporter | ||
Comment 19•3 years ago
|
||
| Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 20•3 years ago
|
||
I think what's happening in each of these cases is that Firefox is using the underline thickness specified by the font that's in use.
E.g. on the https://steelseries.com/gaming-mice page, the product name is using a webfont "ReplicaPro TT Heavy". Checking the 'post' table of that font, we find
<underlinePosition value="-140"/>
<underlineThickness value="20"/>
which means the specified underline thickness is 20/1000 of the font size. The size used there is approximately 18px, so the expected underline thickness would be 0.36px. Setting text-decoration-thickness: from-font; on the element in Chrome or Safari results in a similarly thin underline.
So Firefox is simply honoring what the font designer has specified. The author could override that using something like text-decoration-thickness: 0.1em (or any other desired value), but in the absence of any specific request from the author, we respect what the font asks for.
| Reporter | ||
Comment 21•3 years ago
|
||
But it looks awful in Firefox compared to Chrome and Safari!
| Reporter | ||
Comment 22•3 years ago
|
||
I also noticed that in Firefox the link underlines have the wrong spacing between the text and the underline.
Firefox: https://i.imgur.com/MiZ6JJs.png
Chrome: https://i.imgur.com/uS8sF2p.png
Safari: https://i.imgur.com/kD0eoap.png
Firefox: https://i.imgur.com/QIbM1eb.png
Chrome: https://i.imgur.com/gQwBeB6.png
Safari: https://i.imgur.com/nIqbzgx.png
Firefox: https://i.imgur.com/WQSZZOR.png
Chrome: https://i.imgur.com/g0lDiUt.png
Safari: https://i.imgur.com/wXEtbk7.png
Link to this page: https://www.mozilla.org/en-US/firefox/108.0.1/releasenotes/
| Reporter | ||
Comment 23•3 years ago
|
||
| Reporter | ||
Comment 24•3 years ago
|
||
| Reporter | ||
Comment 25•3 years ago
|
||
| Reporter | ||
Comment 26•3 years ago
|
||
| Reporter | ||
Comment 27•3 years ago
|
||
| Reporter | ||
Comment 28•3 years ago
|
||
| Reporter | ||
Comment 29•3 years ago
|
||
| Reporter | ||
Comment 30•3 years ago
|
||
| Reporter | ||
Comment 31•3 years ago
|
||
| Reporter | ||
Comment 32•2 years ago
|
||
Here's another good example that clearly shows how badly Firefox renders link underlines: https://www.iphones.ru/iNotes/vladelcy-iphone-14-pro-nachinayut-zhalovatsya-na-ostatochnoe-izobrazhenie-iz-za-vsegda-vklyuchennogo-ekrana-04-26-2023
Screenshot: https://i.imgur.com/7riQU8j.png
🤦♂️ 🫣 👎
| Reporter | ||
Comment 33•2 years ago
|
||
| Reporter | ||
Comment 34•2 years ago
|
||
Now take a look at how Chrome and Safari render link underlines:
Chrome: https://i.imgur.com/ENDza7r.png
Safari: https://i.imgur.com/bK2k0BY.png
😍 👏 👌 👍
| Reporter | ||
Comment 35•2 years ago
|
||
| Reporter | ||
Comment 36•2 years ago
|
||
Comment 37•2 years ago
|
||
This happens because the <a> element that is generating the underline has font-size: 0.
| Reporter | ||
Comment 38•2 years ago
|
||
Okay, but what worries me most is: are the developers planning to fix this bug? 🤔
Description
•