Open Bug 1982904 Opened 8 months ago Updated 7 months ago

wpt reftest: css/css-fonts/font-variation-settings-descriptor-04.html fails on new android 14 emulator

Categories

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

defect

Tracking

()

People

(Reporter: jmaher, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

as seen here on try:
https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=fT3bkaCfRCWsvDxmU12J2g.0&tier=1%2C2%2C3&revision=fdea14904f15d8fe3a01e1277a1ad60054bf5e8e&test_paths=%2Fcss%2Fcss-fonts&searchStr=wr1

you can look at the reftest compare and the text is bolder on the reference image, but not on the test image.

in addition (same try link/job):

  • css/css-fonts/system-ui-mixed.html (the left characters are bolded on the reference image. also the entire line seems shifted down)

Jonathan, re system-ui-mixed.html:

I looked into this last week and it appeared to regress sometime between android 7 and 11.

I notice the test has font-family: serif; whereas the reference has font-family: sans-serif;. Is that deliberate?

On Android 7, we end up using NotoSansCJK-Regular.ttc for both cases. Whereas on Android 11 we use NotoSerifCJK-Regular.ttc and NotoSansCJK-Regular.ttc respectively.

So somewhere between android 7 and 11 the a serif CJK font was added, causing the test to fail? Should we be using either consistently serif or sans-serif in both the test and reference?

Flags: needinfo?(jfkthame)

No, IIRC this was quite deliberate: the idea being that if system-ui works appropriately for all the content, the fallback (serif or sans-serif) will not be used at all, and so the test and reference files will match. If they're not matching, that implies that system-ui didn't handle everything as expected.

It looks like our implementation of system-ui on Android doesn't cover the CJK characters, so in a sense we've always been "failing" that, but the test didn't catch it because we also didn't have distinct serif vs sans-serif mappings. Now that those exist, the test is revealing the limitations of system-ui as it was intended to do.

So I think it'd be appropriate to annotate this as an expected failure, and file a bug to the effect that system-ui on Android doesn't support CJK content. (We already fail similarly on other platforms, fwiw.)

Flags: needinfo?(jfkthame)

The severity field is not set for this bug.
:jwatt, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jwatt)
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.