[css3-regions] How should elementFromPoint interact with Regions?

Hi-

We've recently started to examine what happens when the Javascript OM call elementFromPoint [1] interacts with CSS Regions [2]. 

In IE's current implementation, the displayed elements in a region are in a separate child document from the surrounding content, and, from an object model perspective, the elements that act as regions have no content of their own. This makes hit testing for elementFromPoint potentially difficult.

We therefore suggest that if elementFromPoint(x,y) is called from a parent document and hits an element in a child document (e.g. displayed in a frame or region), an appropriate element from the parent document should be returned.  If the document is being displayed via an iframe or frame element, return that element.  If the document is being displayed via a region, return the region displaying the document.

Alternatively, a single-document implementation of regions should return the hit-tested element at the given coordinates. 

Any thoughts, opinions, or other suggestions for additional approaches are welcome. 

Regards,

-Chris

[1] http://www.w3.org/TR/cssom-view/#dom-document-elementfrompoint
[2] http://dev.w3.org/csswg/css3-regions/

Received on Monday, 23 January 2012 17:49:27 UTC