This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In section 14.3.1.1, the spec says click operates on the middle of the element. It further states: "If the element is outside the viewport (according to the [CSS21] spec), the implementation should bring the element into view first. The implementation may invoke scrollIntoView on the underlying DOM Element." It is unclear what the method should do if, after scrolling the element into view, the middle of the element (as defined in this section) is still not visible in the viewport.
As long as there is something of the element visible then we should try work with it, as this is what a user *could* do. I'll take this and update accordingly.
after speaking to Jim Evans about this, the prefered wording that we will probably use is midway along the x- and y-axes of the visible portion of the element after beings scrolled into the viewport if and only if the center point of the bounding client rect of the element is not within the viewport
iterate over the clientRects of the element find 1st visible one, if the center is in viewport cick it, otherwise constrain to the view port size and click the centre of that
This section has been rewritten and I think covers what was originally asked. If it doesnt please reopen and what we are missing