Is it possible to use calc()
inside of a css function like transform
or translate
?
I cannot seem to get it working. Here is a demo so you guys can play around!
http://jsfiddle.net/qdJwY/1/
Thanks for your ideas and feedback!
Is it possible to use Thanks for your ideas and feedback! |
|||||
|
You can use Also, make sure to list the unprefixed version last. Mixing percentages with other value types in the calc() function within a transform doesn't seem to work at all in Chrome. I'll report this as a bug. UPDATE: This has been reported as a bug here: https://code.google.com/p/chromium/issues/detail?id=150054 |
||||
|
It works: http://jsfiddle.net/qdJwY/2/ (edit: Tested in Firefox only) In your example it just so happens that |
|||||||||
|