Re: [csswg-drafts] [css-values-4] Specify simplification of min() and max() more explicitly (#4550)

For (1), I don't specify anything about reordering the arguments because I assumed we want to keep the arguments in the order specified. As @Loirooriol points out, you can't generally sort them in any reasonable way; sorting only the arguments that are single values seems low-value and not worth the effort of speccing/implementing/testing, imo.

That said, any sorting we do would be identical to the sorting that is already specified for Sum nodes (as a legacy of the older, simpler calc() where you could always simplify things to a sum of simple values); the simple unit values are in alphabetical order by unit, and the more complex things go at the end in source order. Is it worthwhile applying that sorting to all the commutative operators?

For (2), I could partially apply the min/max function, sure. It would be identical to the combining that goes on within a Sum or Product node. I can go either way on this.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4550#issuecomment-560210041 using your GitHub account

Received on Monday, 2 December 2019 03:14:46 UTC