Closed Bug 1722763 Opened 3 years ago Closed 3 years ago

Incorrect render of the emoji flag when setting font-size with ::first-letter

Categories

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

Firefox 90
Desktop
macOS
defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: ksenia, Assigned: jfkthame)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(2 files)

This was initially reported in https://github.com/webcompat/web-bugs/issues/78932

STR:
Visit https://codepen.io/biotimylated/pen/abWOEJm in Firefox release on desktop and observe emoji icons

Expected:
Flag emoji icon that is styled with ::first-letter is rendered

Actual:
Flag emoji icon is not displayed

Some more info:
I run mozregression and it seems that using ::first-letter didn't have any effect on emojis in this test case until 1686512 landed.

Also, I found this issue https://bugzilla.mozilla.org/show_bug.cgi?id=1570452, where the resolution was that ::first-letter pseudo-selector shouldn't work if the first letter in a paragraph or text tag is an emoji.

Also, there is another problem (likely related since it's started happening after patch in 1686512 landed?), when using vertical-align: middle; on the emoji flag, it gets rendered with the left and right halves with different vertical alignments.

Hi Jonathan, would you be able to take a look, please?

Flags: needinfo?(jfkthame)
Regressed by: 1686512
Has Regression Range: --- → yes
Severity: -- → S3
Priority: -- → P2
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5ae8ad2a0901
Don't let ::first-letter break Regional-Indicator flag ligatures. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/29853 for changes under testing/web-platform/tests
Regressions: 1723231

Backed out for causing wpt failures in /css/selectors/first-letter-flag-001

Backout link: https://hg.mozilla.org/integration/autoland/rev/5761da0ad06f133f8b57ac59ecc53c2fe44f5643

Push with failures

Failure log

Upstream PR was closed without merging

(In reply to Sandor Molnar from comment #6)

Backed out for causing wpt failures in /css/selectors/first-letter-flag-001

Looks like async font fallback sometimes hitting the windows-debug build. We'd better disable the async behavior for this test, so that test and reference screenshots consistently agree about the font to pick.

Flags: needinfo?(jfkthame)
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/84bb91189ce5
Don't let ::first-letter break Regional-Indicator flag ligatures. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: