W3C home > Mailing lists > Public > www-style@w3.org > January 2012

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

From: Vincent Hardy <vhardy@adobe.com>
Date: Mon, 23 Jan 2012 10:38:16 -0800
To: Chris Jones <cjon@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
CC: Alex Mogilevsky <alexmog@microsoft.com>, Sylvain Galineau <sylvaing@microsoft.com>
Message-ID: <CB42E3A8.2C549%vhardy@adobe.com>
Hi Chris,

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

Yes, I agree and I think we should mention this in the spec. I added an
issue for it:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15679

I am not sure about external flows: since we agreed to remove them from
the spec. for now, I think we should not talk about elementFromPoint in
that context.

Regards,
Vincent

From:  Chris Jones <cjon@microsoft.com>
Date:  Mon, 23 Jan 2012 09:48:32 -0800
To:  "www-style@w3.org" <www-style@w3.org>
Cc:  Alex Mogilevsky <alexmog@microsoft.com>, Sylvain Galineau
<sylvaing@microsoft.com>
Subject:  [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 18:38:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT