[csswg-drafts] Pull Request: [css-values] Serialize % before px in calc example

ewilligers has just labeled a pull request from ewilligers for https://github.com/w3c/csswg-drafts as "css-values-4":

== [css-values] Serialize % before px in calc example ==
The example ''calc(20px + 0%)'' is serialized as
''calc(0% + 20px)'', according to the serialize a summation rules
https://drafts.csswg.org/css-values/#math-function-serialize-a-summation

i.e. Sort the terms in the following order:

 1. The number, if present
 2. The percentage, if present
 3. The dimensions, ordered by their units <a>ASCII case-insensitive</a> alphabetically
 4. The ''min()'' and ''max()'' functions,
  in the order they appeared in the original expression.


See https://github.com/w3c/csswg-drafts/pull/3333

Received on Monday, 19 November 2018 09:31:42 UTC