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
Similar:
- [cssom-view] comments on StyleMedia interface http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface says: # The styleMedia attribute must return the StyleMedia object # associated with the Window object. It always returns the same # object. Given...
- [cssom-view] elementFromPoint vagueness and “hit testing” The elementFromPoint() method is specified to return an element "at the coordinates x,y .... determined through hit testing". The specification (and even the definition) of...
- [cssom-view] scrollWidth vs clientWidth Hi, I cannot tell, from reading the spec, what the difference between the clientWidth and scrollWidth is supposed to be (and also clientHeight and scrollHeight,...
- How can I create a general XSD complex type? I just started using XSD today to bear with me if this a kind of a dumb question. I have an XML schema where three...
- XPath – Find elements by attribute namespace I’m trying to use XPath to find all elements that have an element in a given namespace. For example, in the following document I want...