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.
MotivationThis will make Blink more aligned with the spec and with Firefox, but no longer aligned with WebKit. Fixing potential pages broken by this change or not currently working in Firefox is straightforward : just remove the -webkit prefix. This will continue to work in WebKit too.
In March 2020, searching these strings on HTTPArchive gave 11 matches over ~5 millions (0.0000022 %). Typically this is used by elements with class="Apple-style-span", suggesting it was generated by some Apple WYIWYG authoring tool that probably does not properly serialize internal -webkit-<generic-name> values.
Internally, these values were used by one legacy web test (see https://chromium-review.googlesource.com/c/chromium/src/+/3091145) and by the "internal popup menu" (https://chromium-review.googlesource.com/c/chromium/src/+/3087350).
font-family is exposed via usual CSS DevTools.
-- Frédéric Wang
11 matches out of ~5 millions, which may (or may not) select an alternatively undesired font is not much. Normally I'd want a use counter to ensure possible breakage is very small, but with such a tiny known usage of such an unknown feature, I'm leaning towards thinking this should be safe enough. Thoughts?
/Daniel
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/040a4a54-d8ce-a9f7-8e3c-6cba3a57c67e%40igalia.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/93c98e36-a6c9-400d-7a9a-68a4d621cc59%40chromium.org.
LGTM2 (but note Rick's note)
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/40ba0382-8cda-fd78-9345-bd1a03a50398%40gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqHHie%2ByxEy8XPjrZMPi7WMdTnV3S1BXaBWvdqPMicPh9g%40mail.gmail.com.
-- Frédéric Wang
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/fdceaa38-f6c5-a56c-8b35-53ee60812d24%40igalia.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfXc-iZFs8KxeYM-AOCr9HVE%2BTo%3DGez0Vg%3DDEju0XZ%3DzDQ%40mail.gmail.com.
-- Frédéric Wang
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/046e6780-dd90-d8e1-ce1e-da9cfa50432e%40igalia.com.
-- Frédéric Wang