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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 25 Jan 2012 17:05:45 +1300
Message-ID: <CAOp6jLaJG7FZCsJp4qzKXt_JU3Ckzf8TPDvsh6Mer8NdTj8usg@mail.gmail.com>
To: Chris Jones <cjon@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>, Alex Mogilevsky <alexmog@microsoft.com>, Sylvain Galineau <sylvaing@microsoft.com>
On Tue, Jan 24, 2012 at 6:48 AM, Chris Jones <cjon@microsoft.com> wrote:

> 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.
>

IMHO you should always return the <iframe> element whether or not it's
flowing into a region. What is the argument for returning a region element?
I don't think you would ever return a region element for same-document
content flowing into the region (except perhaps where the region has no
content), so I don't see why you would want to for <iframe> content.

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]
Received on Wednesday, 25 January 2012 04:06:21 GMT

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