W3C home > Mailing lists > Public > www-style@w3.org > September 2010

[cssom-view] MouveEvent x and y

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Tue, 14 Sep 2010 18:32:14 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E27D07135@TK5EX14MBXC111.redmond.corp.microsoft.com>
The current draft defines these attributes [1] as:

# The x attribute must return the value of clientX. 
# The y attribute must return the value of clientY.

IE returns the distance from the border edge of the closest position:relative element or the viewport.
Opera sometimes returns the distance from the border edge of the element if it's position:absolute. 
WebKit matches the current definition.

I was wondering why these attributes were specified to be synonyms for two other attributes ?



[1] http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interface
Received on Tuesday, 14 September 2010 18:34:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT