Default value vs. inherited value

Hi,

Consider the following examples
Example 1:
<svg width="100" height="100" viewBox="0 0 100 100">
  <g>
      <rect x="50" y="50" width="50" height="50"/>
  </g>
</svg>
In ASV, this shows a black square which is ok because black is the 
default filling.

Example 2:
<svg width="100" height="100" viewBox="0 0 100 100">
  <g fill="red">
      <rect fill="inherit" x="50" y="50" width="50" height="50"/>
  </g>
</svg>
In ASV, this shows a red square which is ok because the rectangle 
filling is explicitely inherited from the group.

Example3:
<svg width="100" height="100" viewBox="0 0 100 100">
  <g fill="red">
      <rect x="50" y="50" width="50" height="50"/>
  </g>
</svg>
In ASV, this shows a red square. My problem is that I would have thought 
that example 3 was similar to example 1 and not example2.

This may be a stupid question but where in the spec is it said that when 
an attribute is not present, its value should be inherited instead of 
using its default value.

Regards,

Cyril Concolato

-- 
Ecole Nationale Supérieure des Télécommunications, Paris
Dept. Comelec
46, rue Barrault 75013 Paris
Tel: +33145817991    Fax: +33145804036

Received on Monday, 26 April 2004 10:22:56 UTC