W3C home > Mailing lists > Public > www-svg@w3.org > November 2003

referenceElement for getEnclosureList()

From: Gavin Kistner <gavin@refinery.com>
Date: Wed, 12 Nov 2003 13:10:24 -0700
Message-Id: <3FE59D6C-154C-11D8-9F82-0003937E984E@refinery.com>
To: www-svg@w3.org

[Previously asked on the svg-dev mailing list, but no answers. Figure 
it's time to go straight to the horses' mouths.]

For getEnclosureList and getIntersectionList, are the returned elements 
'below' the reference element in terms of source code (drawn on top of) 
or 'below' the reference element in terms of z-index (appearing earlier 
in source code, drawn underneath the reference element)?

 From the SVG1.1 DOM Interface for SVGSVGElement[1], the
getEnclosureList(...) method takes two arguments:
	rect - "The test rectangle. The values are in the initial coordinate 
system for the current 'svg' element."
	referenceElement - "If not null, then only return elements whose 
drawing order has them below the given reference element."

What does the word 'below' mean in the description above? Does it mean 
'drawn below' (as in lower "z-index"; the elements would be occluded by 
the reference element if it had an opaque fill) or does it mean 
'appears lower in the source code' (i.e. higher z-index, drawn over top 
of the reference element)?

Put another way, is it:
returnedElements.zIndex < referenceElement.zIndex
returnedElements.zIndex > referenceElement.zIndex

[1] http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement
Gavin Kistner @ Refinery, Inc.
work: +1.303.444.1777
Received on Wednesday, 12 November 2003 15:10:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:57 UTC