CSS "overline" text-decoration sometimes disappear in reduced size text.
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: techmanager, Unassigned)
References
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:103.0) Gecko/20100101 Firefox/103.0
Steps to reproduce:
- Open web page at https://fr.wikipedia.org/wiki/Transistor-Transistor_logic
- Read the sentence "Par exemple, pour trois entrées logiques A, B et C produisant l'état de la sortie logique Y, le transistor de liaison réalise d'abord l'opération X = A.B.C, puis le transistor d'amplification réalise l'opération Y = X = A.B.C."
My configuration:
Firefox 103.0.1 / macOS 10.14.6
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:103.0) Gecko/20100101 Firefox/103.0
Actual results:
At the end of the sentence, in "Y = X = A.B.C":
- the "X" appear with no bar over the text
- the bar over "A.B.C" is cropped.
Expected results:
The text "Y = X = A.B.C" should appear with a bar over "X" and "A.B.C".
The CSS attributes of this text are:
- text-decoration: overline;
- font-family: sans-serif; (actually Helvetica)
- initial font-size: 16px;
- cooked font-size: calc(1em * 0.875);
Using these attributes, I can reproduce the issue over most of the capital characters.
The issue is still present with: - font-size: calc(1em * 0.890);
- font-size: calc(1em * 0.960);
- font-size: calc(1em * 0.970);
The issue disappear with: - font-size: calc(1em * 0.895);
- font-size: calc(1em * 0.930);
- font-size: calc(1em * 0.960);
- font-size: calc(1em * 0.975);
The issue disappear when I zoom in the web page.
Reporter | ||
Comment 1•2 years ago
|
||
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Reporter | ||
Comment 3•2 years ago
|
||
The issue can be reproduced using simple CSS text-size attributes less than 16px.
Reporter | ||
Comment 4•2 years ago
|
||
^ font-size attributes -- sorry
Comment 5•2 years ago
|
||
I don't have Helvetica, but I can see overline overlapping even at 16px with what my system considers the closes match.
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 6•1 month ago
|
||
I am currently using an up-to-date version of Firefox ESR (115.11.0esr) and this issue is still not fixed.
The issue is not visible anymore on the Wikipedia as the page has been modified with a workaround, but David Shin's "minimum reproducible test case" — https://bugzilla.mozilla.org/attachment.cgi?id=9288824 — still shows the problem.
Description
•