[cssom-view] MouveEvent x and y

Posted in dotnet, vb, vb.net | No Comments »

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:

  1. [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...
  2. [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...
  3. [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,...
  4. 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...
  5. 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...

Leave a Reply