Commit e20824b
committed
[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.1 parent 0350ef3 commit e20824b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2442 | 2442 | | |
2443 | 2443 | | |
2444 | 2444 | | |
2445 | | - | |
| 2445 | + | |
2446 | 2446 | | |
2447 | 2447 | | |
2448 | 2448 | | |
| |||
0 commit comments