W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Re: [css3-2d-transforms] convertPoint* functions when node isn't an element in a document

From: Simon Fraser <smfr@me.com>
Date: Mon, 05 Oct 2009 15:50:52 -0700
Cc: "www-style@w3.org" <www-style@w3.org>
Message-id: <AC69B4A0-8CF5-4120-932D-4C15F5CB5B6E@me.com>
To: Řyvind Stenhaug <oyvinds@opera.com>
On Oct 5, 2009, at 6:14 AM, Řyvind Stenhaug wrote:

> The convertPointFromPageToNode and convertPointFromNodeToPage  
> functions take a Node as their first parameter. Since there are at  
> least 12 node types this means they don't just accept elements, but  
> also things like attribute nodes and comment nodes, for which the  
> function descriptions don't really make sense. It's also possible to  
> have a node that's not part of a document tree. The specification  
> should say what happens in these cases.
> A related suggestion is to have these functions on an extension to  
> the Element interface instead (though that still leaves the case of  
> e.g. document.createElement('div').convertPoint[...]).

I think these methods would sit better as part of the CSSOM View  
module (http://www.w3.org/TR/cssom-view/), which, in general, needs to  
become more transform-aware.

Received on Monday, 5 October 2009 22:51:27 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:40 UTC