[Webkit-unassigned] [Bug 54018] Make offset* return doubles instead of ints

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 19 07:04:46 PDT 2012


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





--- Comment #9 from Ion Rosca <rosca at adobe.com>  2012-06-19 07:04:44 PST ---
In my case WebKit is embedded in a tool used to create animated web content using HTML5, CSS3 an JS. This tool uses lots of transformations on elements to create irregular shapes. Each element has a quadrilateral handler that suits best the transformed element. Application uses offsetW/H to draw handlers. When zooming in/out, because of offset* lack of precision, handlers overlap, are drown inside or outside the elements.
I agree we should follow specificationa and care about browser compatibility, but there are cases where we need precise metrics and we don't have them neither using offsetW/H nor using getBoundingClientRect.
IE has solved this problem by using a flag that switches between ints and floats for offset properties. This solution appears to violate the spec. We might propose an extended set of offset properties without touching the old ones, or any other solution that follows the spec and exposes through dom api more precise information from WebKit.

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