Hi,
A webapp I am working on must use millimeters instead of pixels for the top, left, width, height and font-size style attributes. There happens something strange when setting these style attributes with mm values.
For instance:
$#id.css("width",3mm);alert($#id.css("width"));
alerts the value 11.0667px
Clearly somewhere a calculation is done from mms to pxs. I read something about the getComputedStyle in browsers that nicely explains this behaviour.
My questions:
1. Is my assumption correct and has this behaviour to do with the getComputedStyle?
2. Where can I find documentation on this? I would like to understand this better.
Thanks for any response, Sponiza