[Webkit-unassigned] [Bug 42799] pixelWidth/posWidth are processed incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 7 21:42:54 PDT 2010


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


Yuxiang Luo <luoyx at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|When setting 'style.width'  |pixelWidth/posWidth are
                   |with em unit, the value of  |processed incorrectly
                   |'style.pixelWidth' is not   |
                   |transformed from 'em' to    |
                   |'px'                        |




--- Comment #3 from Yuxiang Luo <luoyx at google.com>  2010-09-07 21:42:54 PST ---
The existence of CSS properties that start with prefix 'pixel' and 'pos' is for compatibility with IE, but the currently the behavior differs a lot from that of IE. Take pixelWidth/posWidth as example:
1. Getting pixelWidth: if style.width has unit type 'em', 'ex' or 'rem', then pixelWidth's value is not returned without transformation
2. Getting posWidth: it should return parseFloat(style.width), but not the same with pixelWidth
3. Setting pixelWidth: style.width's unit type should keep unchanged, while the value should be changed with proper transformation.
4. Setting posWidth: style.width's unit type should keep unchanged, while the value is exactly the value assign to posWidth

-- 
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