[csswg-drafts] [css-fonts-4] `font-feature-settings` and `font-variation-settings` should specify ordering in the computed style (#8450)

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

== [css-fonts-4] `font-feature-settings` and `font-variation-settings` should specify ordering in the computed style ==
The current specs for [font-feature-settings](https://w3c.github.io/csswg-drafts/css-fonts/#font-feature-settings-prop) and [font-variation-settings](https://w3c.github.io/csswg-drafts/css-fonts/#font-variation-settings-def) specify how tags are deduplicated but does not answer how to sort tags relatively to one another.

In the case of `font-variation-settings`, Chrome and Firefox both sort alphabetically, and Safari will too per https://github.com/WebKit/WebKit/pull/10085.

In the case of `font-feature-settings`, Firefox sorts alphabetically, while Chrome does not. Safari will sort alphabetically as well per https://github.com/WebKit/WebKit/pull/10085.

While the fact that values are de-duplicated is sufficient to ensure correct round-tripping of computed values as specified values, it would be a Good Thing to specify reliable output for computed style. I suggest we use ascending alphabetical sorting to match the existing behavior of Firefox and the new behavior of Safari.

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


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

Received on Tuesday, 14 February 2023 13:23:13 UTC