Re: [css3-values] nesting calc()

css crush preprocessor uses bare parens as the math function [1]. The basic
idea is the same, though obviously a simpler proposition than calc as it
strips units and works with raw numbers rather than computed values.

Personally I quite like the bare parens syntax, especially if you add in
signing:

top: 50%;
height: 10em;
margin-top: -( 10em / 2 );

versus

top: 50%;
height: 10em;
margin-top: calc( ( 10em / 2 ) * -1  )




[1] http://the-echoplex.net/csscrush/#functions


-- 
Pete Boere
Web Developer

Received on Tuesday, 26 June 2012 20:50:52 UTC