Deprecated and remove font-family: -webkit-pictograph
- Category
- CSS
- Type
- Feature removal
- Status
- No active development (Chrome No active development)
- Intent stage
- Dev trials
WPT details: There are tests to check that -webkit-pictograph is treated as normal <font-family>. https://w3c-test.org/css/cssom/font-family-serialization-001.html https://w3c-test.org/css/css-fonts/generic-family-keywords-001.html https://w3c-test.org/css/css-fonts/generic-family-keywords-002.html
Summary
Deprecate and remove special handling of the <family-name> "-webkit-pictograph" which selects a font from the corresponding user preference. In Chromium, the defaults are: - Apple Color Emoji on macOS (and iOS/WebKit) - Segoe UI Symbol on Windows - Times New Roman on Linux - Noto Color Emoji on ChromeOS - This feature is not implemented on Android.
Motivation
- Remove non-standard property inherited from WebKit's implementation. - Improve spec conformance and cleanup existing font-family code. - Prepare for future implementation of font-family e.g. a replacement would be "font-family: emoji"
Standards & signals
- Specification: https://drafts.csswg.org/css-fonts/#font-family-prop
- Firefox: Positive — No support for -webkit-pictograph
- Safari: No signal — This has been implemented in WebKit since 2011. In general Apple is against removing features that could potentially break web compat or their platform. I asked them to see if they would be happy to add "font-family: emoji" as an alias for -webkit-pictograph, as they did for "system-ui". In general about the current font-family implementation, Myles C. Maxfield commented that he is aware of the issue and doesn't think it's desirable that these -webkit-* values are web-exposed.
- Web developers: No signals — "font-family: emoji" was added in the CSS fonts spec, so I guess there is interest to make this more standard. I was not able to find the github discussion, though.
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1065468
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=deprecated-and-remove-font-family-webkit-pictograph
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Deprecated%20and%20remove%20font-family%3A%20-webkit-pictograph
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Deprecated%20and%20remove%20font-family%3A%20-webkit-pictograph
- Baseline status: https://webstatus.dev/?q=Deprecated%20and%20remove%20font-family%3A%20-webkit-pictograph
Docs: https://bugs.chromium.org/p/chromium/issues/detail?id=1065354 https://chromium-review.googlesource.com/c/chromium/src/+/2124260 https://source.chromium.org/search?q=name%3D%22IDS_PICTOGRAPH_FONT_FAMILY%22%20 https://bugs.webkit.org/show_bug.cgi?id=65197 https://chromium-review.googlesource.com/c/chromium/src/+/2119545