W3C home > Mailing lists > Public > www-svg@w3.org > March 2004

Re: Correct behavior of "visibility" tag

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Wed, 10 Mar 2004 09:55:20 +0100
To: ruben Tech <rubentech2000@yahoo.com>
Cc: www-svg@w3.org
Message-ID: <20040310085520.GA3208@linux>

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:26 GMT