udom-event-205-t

raster image of udom-event-205-t

This tests the clientX, clientY and button attributes of the MouseEvent interface.

The test consists of three rectangles, one for each of the three common mouse buttons. To perform the test, the user must move the mouse cursor over a rectangle, press the mouse button down, then move the mouse cursor out of the rectangle. If after this the rectangle becomes blue, then that sub-test has been passed, indicating that the clientX, clientY and button attributes of the MouseEvent object had expected values for the mouseover, mousedown and mouseout events.

The test as a whole has been passed if, for each rectangle that corresponds to a button on the pointing device that the user agent supports (and has not bound to a user interface function, such as a context menu), it becomes blue after performing the interaction. If the user agent does not support a pointing device at all, then the test is passed automatically without needing to perform any interaction.