Re: Correct behavior of "visibility" tag

Hi

On Tue 2004-03-09 ruben Tech wrote:
> [...] was not there anywhere in the SVG specification. If the
> documents would have been clear about it (that by default children
> have the value "inherit"), there wouldn't been any confusion. 

According to the SVG specification, the initial value is "visible".

It's a large spec, and I sometimes fail to search through it
diligently enough (as some of the honoured members of this list had to
experience some days ago :), but if you're looking for something like
the default value for some property then just surf to the property
index and search for it (eg via ctrl-f):

http://www.w3.org/TR/SVG11/propidx.html
"
Name:
  'visibility'
Values:
  visible | hidden | collapse |  inherit
Initial value:
  visible
[...]
Inherited?:
  yes
"

The name of the property is linked to it's definition:

http://www.w3.org/TR/SVG11/painting.html#VisibilityProperty
"
'visibility'

Value:
  visible | hidden | collapse | inherit
Initial:
  visible
Applies to:
  graphics elements (including the 'text' element) and text
  sub-elements (i.e., 'tspan', 'tref', 'altGlyph', 'textPath' and 'a')
Inherited:
  yes

[... more info ...]
"

But the confusion might come from
http://www.w3.org/TR/REC-CSS2/visufx.html#propdef-visibility
which says
"
Initial:
  inherit [SVG specifies 'visible']
[...]
Inherited:
  no [SVG specifies 'yes']
"

Tobi

-- 
Vim users, don't forget to
   http://iccf-holland.org/donate.html

Received on Wednesday, 10 March 2004 03:52:35 UTC