RE: [SVGMobile12] Rendering tree

> -----Original Message-----
> From: Anne van Kesteren [mailto:fora@annevankesteren.nl]
> Sent: den 16 januari 2006 16:39
> To: Ola Andersson
> Cc: www-svg@w3.org; tor@cs.brown.edu
> Subject: Re: [SVGMobile12] Rendering tree
> 
> Quoting Ola Andersson <Ola.Andersson@ikivo.com>:
> > ===
> > The set of elements being rendered when the painters model is
applied to
> > an SVG document fragment. The following elements in the fragment:
> >
> > * a 'defs' element
> > * elements whose 'display' property is set to 'none'
> > * elements with one or more test attributes that evaluate to false
> > * direct children of a 'switch' element, other than the child that
> > evaluates to true
> > * a 'font' element
> > * a 'linearGradient' element
> > * a 'radialGradient' element
> >
> > and their children, are part of the SVG document fragment, but not
part
> > of the Rendering tree (and thus do not get rendered). Elements with
zero
> > opacity, or no fill and no stroke, or with the visibility property
set
> > to hidden, are still in the rendering tree. The copies of elements
> > referenced by a 'use' element, on the other hand, are not in the SVG
> > document fragment but are in the rendering tree.
> > ===
> 
> I don't really understand the last sentence. What exactly happens when
I
> reference a <rect> element which has its 'display' property set to
> 'none'? Does
> it matter how I set the 'display' property?
> 

The DOM tree just contains the use elements and the elements they
reference, you don't copy the referenced element and put it as a child
to the use. In the rendering tree however, this is what you do. A
referenced rect with 'none' display is not in the rendering tree, a
visible rect is.
/ola



> 
> --
> Anne van Kesteren
> <http://annevankesteren.nl/>

Received on Monday, 16 January 2006 15:54:05 UTC