Open Bug 2074261 Opened 2 months ago Updated 2 months ago

Firefox widens advances when applying synthetic bold (as evidenced by failures in /css/css-fonts/synthetic-bold-does-not-widen-advances.html)

Categories

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

defect

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug, Whiteboard: [wpt])

User Story

user-impact-score:40

Syncing wpt PR 62808 found new untriaged test failures in CI

Tests Affected

New Tests That Don't Pass

  • /css/css-fonts/synthetic-bold-does-not-widen-advances.html [wpt.fyi]
    • Synthetic bold does not widen a run of inked glyphs: FAIL (Chrome: PASS, Safari: FAIL)
    • Synthetic bold does not widen a run of U+0020 spaces: FAIL (Chrome: PASS, Safari: FAIL)
    • Synthetic bold does not widen a run of U+00A0 no-break spaces: FAIL (Chrome: PASS, Safari: FAIL)

CI Results

Gecko CI (Treeherder)
GitHub PR Head

Notes

These updates will be on mozilla-central once bug 2073759 lands.

Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.

This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/

If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.

The PR says this is from this bug: https://bugs.webkit.org/show_bug.cgi?id=201725

Here's the reduced testcase from that bug:
https://bug-201725-attachments.webkit.org/attachment.cgi?id=464500

Firefox does indeed spread out the glyphs more there with font-weight: bold (making the text look off-center, whereas it does look centered in Chrome).

This is still visible on the site referenced on that bug, too ( https://www.maisonalyzee.com/ ) where the last "E" linewraps to a second line because of this issue.

Severity: -- → S3
Summary: New wpt failures in /css/css-fonts/synthetic-bold-does-not-widen-advances.html → Firefox widens advances when applying synthetic bold (as evidenced by failures in /css/css-fonts/synthetic-bold-does-not-widen-advances.html)

(I'm going to file a webcompat site-report for that site, and I'm morphing this bug to serve as the platform-bug.)

User Story: (updated)

I don't think the expectation that synthetic-bold leaves glyph widths unchanged is particularly reasonable. Is there some requirement in the spec that supports this, or is this WPT simply asserting "Chrome's behavior is the standard"?

In many (most?) cases, the bold weight of a font tends to be slightly wider than its regular-weight version; why shouldn't this also be the case for a browser-synthesized bold?

(In reply to Jonathan Kew [:jfkthame] from comment #3)

Is there some requirement in the spec that supports this

Not that I'm aware of, no.

is this WPT simply asserting "Chrome's behavior is the standard"?

Effectively so, I guess (or that it appears to be required to get good results on this particular site, at least). Probably the WPT should be named .tentative since this isn't standardized behavior.

Though also: now that Safari has aligned with Chrome on this, and we're aware of at least one site that depends on it, it might be worth considering aligning rather than being the odd-one-out... (Bug 2055256 is related, too, though in that case Chrome is declining to bolden the text entirely I think.)

See Also: → 2055256
You need to log in before you can comment on or make changes to this bug.