Caniuse: FontFace API: display incorrect for Edge (Chromium)

Created on 26 Feb 2020  Â·  4Comments  Â·  Source: Fyrd/caniuse

Current data says it isn't supported: https://caniuse.com/#feat=mdn-api_fontface_display

But tests here and testing the test page in Chromium 80 shows there is a display property in the FontFace.

Related tweets here and here.

Most helpful comment

Yup, looks like ranged value support wasn't properly implemented on the caniuse side. I did have some code specific to the "≤37" Android versions but that was pretty hard-coded. Have just pushed a change that hopefully supports version ranges more correctly, see https://caniuse.com/#feat=mdn-api_fontface_display

All 4 comments

It appears that the data comes from MDN browser-compat-data (BCD) for that particular feature, and on the MDN web docs, support is properly marked (see https://wiki.developer.mozilla.org/en-US/docs/Web/API/FontFace). We just recently performed a mass data mirroring of Chrome to Edge in BCD, so it's possible that the data has yet to update on CanIUse. Either that, or maybe ranged values from BCD aren't implemented in CanIUse?

@Fyrd, can you comment on ranged value support for the BCD data?

Yup, looks like ranged value support wasn't properly implemented on the caniuse side. I did have some code specific to the "≤37" Android versions but that was pretty hard-coded. Have just pushed a change that hopefully supports version ranges more correctly, see https://caniuse.com/#feat=mdn-api_fontface_display

Thanks for discovering the cause of the discrepancy, @vinyldarkscratch !

Screenshot 2020-02-27 at 09 02 21

Can now see the fix. Thanks for the prompt response!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

valioDOTch picture valioDOTch  Â·  3Comments

mhartoft picture mhartoft  Â·  3Comments

Schweinepriester picture Schweinepriester  Â·  3Comments

mirraj2 picture mirraj2  Â·  3Comments

greigs picture greigs  Â·  3Comments