[Webkit-unassigned] [Bug 35770] CSSPrimitiveValue.getFloatValue does not convert sizes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 11 08:43:49 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35770





--- Comment #5 from Alexander Pavlov (apavlov) <apavlov at chromium.org>  2010-11-11 08:43:49 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > I've got a patch to convert between all units except rem/em/ex, since these require having RenderStyle of self and/or parent/root elements at hand. Does anyone have a suggestion on how this issue could be treated? We don't want CSSPrimitiveValue to reference its owner style do we?
> 
> From the spec: "Conversions are allowed between absolute values (from millimeters to centimeters, from degrees to radians, and so on) but not between relative values."

Which means the original complaint "a style declaration of length 2em will always return 2, for all units" is invalid. Thanks for the clarification, will prepare the patch soon.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list