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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 8 10:56:27 PST 2011


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





--- Comment #2 from Erik Arvidsson <arv at chromium.org>  2011-02-08 10:56:27 PST ---
(In reply to comment #1)
> Which offsets are you referring to?  Things like Element.offsetLeft? 

offsetLeft
offsetTop
offsetWidth
offsetHeight

but eventually I would like us to fix all cases where we use a non integer internally but expose it as integer to scripting


>Can we do that without breaking web compat?

I'm not sure. Gecko returns non ints for computed style which makes me believe it would be OK to change this.

> It looks like CSSOM-view defines them as returning longs (http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface). Perhaps we should bring this up in the WG.

Yes

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