Closed Bug 1955672 Opened 11 months ago Closed 11 months ago

Failures in some WPT reftests for font-variant-emoji

Categories

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

defect

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(2 files)

We're currently failing css/css-fonts/font-variant-emoji-003.html because our heuristics for selecting between color-emoji and monochrome fonts don't entirely match the test expectations.

[Also showing a failure on wpt.fyi for font-variant-emoji-004.html, but that's just an issue of line height/alignment; the expected glyphs are showing up, but one line of the text is vertically shifted slightly. This is probably a result of inconsistencies in font metrics between the various fonts present, such that line-height (or ascent/descent) computes differently, and we should make the test more robust to eliminate this.]

The existing tests are tweaked to make them more reliable:

(a) Explicit height/line-height is added to avoid spurious discrepances
caused by normal line-height depending on the browser's default fonts.

(b) Variation selectors are added to the reference cases where a glyph
is to be rendered with a different style than its default presentation;
without this, browsers may choose a default font with the "preferred"
presentation over the specified webfont in the reference. With this fix,
the reference files render consistently across Chrome/Firefox/Safari.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED

No change in behavior, just a global rename of the type.

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/222e4b7b3b74 Improve the interaction between font-variant-emoji and Unicode emoji properties during font selection. r=layout-reviewers,emilio,dshin https://hg.mozilla.org/integration/autoland/rev/607af81ae4a2 followup - Rename eFontPresentation enum to simply FontPresentation. r=layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51766 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1958134
QA Whiteboard: [qa-triage-done-c140/b139]
Regressions: 1963436
Regressions: 1965185
Regressions: 1970980
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: