[CSS3 Values] referencing width or height explicitly

http://www.w3.org/TR/css3-values/#calc

Is there a way to reference both width and height of the associated element explicitly via calc()?

If not, can we add it to the proposal list for CSS4 Values?

Having such support would allow more flexible specification of properties (such as gradients) that are sensitive to aspect ratio.  In retrospect, aspect ratio would be enough to solve some of the scenarios, but having width and height (and doing division within the calc when you want aspect ratio) is much more powerful.

[Sidenote: "W3C Working Draft 19 September 2006"..  eep!]

Received on Friday, 19 August 2011 17:46:41 UTC