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

Ian Hickson:
> Just wrap the element in two <g> elements, the outer one having a <g 
> x="50%"> and the inner one having <g x="-...px"> where ... is half the 
> bounding box (which you can obtain through the DOM).

Actually there is no x attribute on the g element (although you can do
that with an svg element), but that’s beside the point.  We want to be
able to implement the standard SVG interfaces, and some of the
properties/methods on the standard SVG interfaces cannot be implemented
without access to the containing shadow scopes.

-- 
Cameron McCormack, http://mcc.id.au/
 xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Received on Thursday, 15 February 2007 00:48:25 UTC