[csswg-drafts] [css-fonts-4] Should `font-variant-emoji` be included in the `font-variant` shorthand? (#7315)

jfkthame has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-4] Should `font-variant-emoji` be included in the `font-variant` shorthand? ==
The spec text for the [`font-variant` property](https://drafts.csswg.org/css-fonts-4/#font-variant-prop) says that it

> is a shorthand for all font-variant subproperties

and its value syntax *almost* reflects this.

However, it does not include the keywords `auto | text | emoji | unicode` that would be the possible values of [`font-variant-emoji`](https://drafts.csswg.org/css-fonts-4/#font-variant-emoji-prop) as specified in the Color Font Support section of the spec.

Is this an accidental omission that should simply be added to the `font-variant` values, or is `font-variant-emoji` *not* supposed to be a subproperty of `font-variant`, despite its name?

My current opinion: the `-emoji` values should be supported by the `font-variant` shorthand; they don't clash with values of any of the other subproperties, and I think authors would naturally assume this should work.

However, this does raise the point that all the other `font-variant` subproperties have the initial value `normal`, so that it's very natural for `font-variant: normal` to set them all to their initial values of the same name. But `font-variant-emoji` is currently specified to have initial value `auto`, and has no `normal`. It would still be possible for `font-variant: normal` to reset it to its initial value (`auto`), but this suddenly seems less intuitive. So I wonder if we should rename this value to `normal` for consistency with the other `font-variant-*` subproperties? (As far as I'm aware, no-one has yet shipped support for `font-variant-emoji`, so renaming the value should be possible without compatibility concerns.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7315 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 26 May 2022 13:28:11 UTC