LeaVerou / css-almanac

Repo for planning & voting on which stats to study
https://projects.verou.me/mavoice/?repo=leaverou/css-almanac&labels=proposed%20stat
34 stars 3 forks source link

font-variant-* #23

Closed svgeesus closed 4 years ago

svgeesus commented 4 years ago

Stats on which font-variant-* longhands such as font-variant-numeric or font-variant-east-asian are being used.

Also whether the font-variant shorthand is being used with the none value, to reset all the longhands.

Crissov commented 4 years ago

Comparative stat for font-feature-settings?

svgeesus commented 4 years ago

Comparative stat for font-feature-settings?

Indeed, that would be very useful, particularly where one could use either approach. IIRC font-feature-settings was deployed in browsers first, so some usage may simply reflect "that was the only thing that worked at the time".

CSS Fonts 4 has the data to map feature codes to variant values.

svgeesus commented 4 years ago

*Correspondences between high-level `font-properties and low-levelfont-feature-settings` features**

font-kerning

font-variant-ligatures

font-variant-position

Perhaps check if stylesheet authors try to nest this (it doesn't work)

font-variant-caps

Also depends on value of font-feature-settings

font-variant-numeric

font-variant-alternates

This one was dropped from CSS Fonts 3 due to lack of implementer support. This is an area where the Open Web Platform lags behind native, which has good alternates support.

font-variant-east-asian

LeaVerou commented 4 years ago

Alright, so this again seems pretty straightforward:

  1. We measure usage of the various font-variant properties, including usage in the font-variant shorthand and the font shorthand. We should probably keep the counts separate, to see if the shorthands are used at all (or we can just do that in #10 and not care about it here)
  2. We measure usage of the various low-level settings @svgeesus posted about by measuring incidence of the code in quotes in font-feature-settings (single or double quotes).
LeaVerou commented 4 years ago

After consulting with @rviscomi, it appears the overlap with the Fonts chapter is too significant, so we will not have a Fonts section. Therefore, I'm closing this.