-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
Closed Rejected as Wontfix by CSSWG Resolutioncss-values-4Current WorkCurrent Worki18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Description
Migrated from #3129
Right now, Values and Units says:
Equal to the used advance measure of the “0” (ZERO, U+0030) glyph in the font used to render it.
It’s pretty unfortunate that ch units can cause fonts to download.
WebKit doesn’t do this; it just uses the primary font, and if the primary font doesn’t support “0” then it uses that font’s .notdef glyph. No downloads necessary.
https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/graphics/Font.cpp#L123
https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/css/CSSPrimitiveValue.cpp#L661
In this comment, @emilio says that Firefox does something similar.
Metadata
Metadata
Assignees
Labels
Closed Rejected as Wontfix by CSSWG Resolutioncss-values-4Current WorkCurrent Worki18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Type
Projects
Status
Wednesday