[csswg-drafts] [css-easings-2] `linear()` serialization does not conform to shortest principle (#9288)

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

== [css-easings-2] `linear()` serialization does not conform to shortest principle ==
https://drafts.csswg.org/css-easing-2/#linear-easing-function-serializing

  > The serialization of `linear()` includes input values for each point, and input values are never less than the input of the previous point.
  >
  > For example:
  >
  > - `linear(0, 0.25, 1)` serializes as `linear(0 0%, 0.25 50%, 1 100%)`

https://drafts.csswg.org/cssom-1/#serialize-a-css-value

  > If component values can be omitted or replaced with a shorter representation without changing the meaning of the value, omit/replace them.

I would suggest (replacing the [*serialized computed value*](https://drafts.csswg.org/css-easing-2/#linear-easing-function-serialized-computed-value) algorithm):

  > A point whose input has a lower value than the input of the previous point is omitted.
  >
  > The serialized computed value represent a point's output as a `<number>` and its input(s) as `<percentage>`.

Alternatively, the serialized computed value could only include `<number>` (cf. #9287).

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


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

Received on Friday, 1 September 2023 06:33:06 UTC