W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

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

From: Eric Willigers via GitHub <sysbot+gh@w3.org>
Date: Mon, 19 Nov 2018 09:31:40 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.labeled-231904475-None-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:55 UTC