Open Bug 1783145 Opened 2 years ago Updated 1 month ago

CSS "overline" text-decoration sometimes disappear in reduced size text.

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 103
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.

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.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

The issue can be reproduced using simple CSS text-size attributes less than 16px.

^ font-size attributes -- sorry

I don't have Helvetica, but I can see overline overlapping even at 16px with what my system considers the closes match.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: -- → S3
See Also: → 1783779

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: