W3C home > Mailing lists > Public > public-appformats@w3.org > February 2007

Re: [XBL] Accessing flattened tree parents of a shadow tree

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 15 Feb 2007 01:05:47 +0000 (UTC)
To: Cameron McCormack <cam@mcc.id.au>
Cc: public-appformats@w3.org
Message-ID: <Pine.LNX.4.62.0702150101010.4112@dhalsim.dreamhost.com>
On Thu, 15 Feb 2007, Cameron McCormack wrote:
> 
> Ian Hickson:
> > While I understand that you think you want to do this, you haven't yet 
> > provided a real use case, nor explained why the solution I gave in:
> > 
> >    http://lists.w3.org/Archives/Public/public-appformats/2007Feb/0068.html
> > 
> > ...doesn't address this.
> 
> Why was the use case I gave not "real"?

Assuming you mean the centering one, it was real, but it can be addressed 
much more easily using the mechanism I gave (center the group, then offset 
the group by half the bounding box).


> It seems reasonable to me.  The solution you gave doesn’t address this 
> because the containing bound element may not be under my control (it was 
> written by someone else) and thus may not implement 
> .nearestViewportElement itself.

So extend it, and implement "nearestViewportElement". XBL gives you the 
tools to do this -- you could even simply write a binding that applied to 
all elements that implemented this property.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 15 February 2007 01:05:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:21 GMT