4 ms·
Standard CSS syntax for arithmetic operations is the calc() operator: http://www.w3.org/TR/css3-values/#calc-notation http://www.w3.org/TR/css3-values/#calc-no
by robin_reala 14y ago
Standard CSS syntax for arithmetic operations is the calc() operator:
http://www.w3.org/TR/css3-values/#calc-notation http://www.w3.org/TR/css3-values/#calc-notation
- lvivski 14y agowell, yes. CSS has variables syntax too (http://dev.w3.org/csswg/css-variables/ http://dev.w3.org/csswg/css-variables/) but for the time of compiling you don't know anything about the runtime, so you can't calculate things like "10em + 5px" 'cause EM's absolute value depends on many things, so I had to separate "real" css calculations and "fake" ones