- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 10 Mar 2016 13:34:35 -0800
- To: Francois Remy <frremy@microsoft.com>
- Cc: CSS WG <www-style@w3.org>
On Wed, Feb 17, 2016 at 11:39 AM, Francois Remy <frremy@microsoft.com> wrote: > It is also not clear to me what happens if we have calc(1cm + 1mm) vs calc(1mm + 1cm). The units are compatible, but which one should we keep? fantasai just pointed out that this is handled by CSSOM. As far as calc() is concerned they just combine together into a "<length> value", and CSSOM describes how to serialize length values (as px). Same for other units, like calc(1deg + 1rad). > Does order matter? Order doesn't matter in combining, but it does in serializing, and that's well-defined (alphabetical, with numbers first and percentages last). ~TJ
Received on Thursday, 10 March 2016 21:35:23 UTC