← Back to release summary

Remove font-family -webkit-<generic-name>

Category
CSS
Type
Feature removal
Status
In development (Chrome In development)
Intent stage
Prepare to ship

WPT details: 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

Remove support for the font-family values -webkit-cursive, -webkit-fantasy, -webkit-monospace, -webkit-sans-serif and -webkit-serif. They essentially behave as an alias to the standard keywords cursive, fantasy, monospace, sans-serif and serif and are only exposed as historical implementation details inherited from WebKit.

Motivation

Blink stores font-family's <generic-name> strings with a -webkit prefix for internal manipulation and removes that prefix when the font-family string is serialized. It is possible for users to directly use these -webkit prefixed forms as font-family's <family-name> values and hence observe special behavior for both rendering and serialization. Removing special behavior for these non-standard -webkit-<generic-name> values will improve alignment with the CSS specifications and Firefox. It will also make Blink's behavior more consistent e.g. that behavior does not happen for the generic font family "system-ui". It will also allow to greatly simplify our internal implementation of font-family, preparing for more cleanup and implementation of new generic names.

Standards & signals

Ecosystem

View on chromestatus.com