W3C home > Mailing lists > Public > www-style@w3.org > March 2012

[css3-values] multiplying and dividing complex units in calc?

From: Chris Eppstein <chris@eppsteins.net>
Date: Thu, 8 Mar 2012 09:34:46 -0800
Message-ID: <CANyEp6VZbAbPUrqUPum2WyVw6eiw5q9GptJ3PDUh8ETLpwThmw@mail.gmail.com>
To: www-style@w3.org
Based on the spec I can't discern whether the following will work as

calc(20px / 1s * 20s) => 400px

I'm concerned about this because storing ratios as intermediate values in
variables is incredibly useful. So once we have variables I'd like to be
able to store `calc(20px / 1s)` into a variable and then use that in
multiplication and division to translate between two otherwise unrelated

Received on Thursday, 8 March 2012 17:35:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:56 UTC