On Fri, May 13, 2011 at 2:02 PM, Gregor <[email protected]> wrote: > Just as any other numeric value would be. IMO "auto" would be most > reasonable solution, since > > "getComputedStyle() gives the final used values of all the CSS > properties of an element" [1], but the return value only contains only > absolute values [2]. > > Gregor >
Computed style returns absolute values, but that's not the problem. The reason why getComputedStyle is clearly wrong in this case is because it should really give back the computed value as written in the CSS2 spec.: | 6.1.2 Computed values | Relative values, on the other hand, must be transformed | into computed values: [...] 'auto' values must be computed | by the formulas given with each property http://www.w3.org/TR/1998/REC-CSS2-19980512/cascade.html#computed-value - Balázs -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
