Re: SVG12: computed value of font-weight vs uDOM

On Fri, 9 Jun 2006, Chris Lilley wrote:
> > >
> > > The WG agrees and the sentence "SVG does not specify how the 
> > > computed value of font-weight is represented internally or 
> > > externally." has been removed from the specification.
> > 
> > So what is the computed value of 'font-weight' on the element with ID 
> > 'x' in the example below, according to SVG 1.2 Tiny?
> > 
> >    <svg xmlns="http://www.w3.org/2000/svg" font-weight="100">
> >      <g font-weight="bolder">
> >        <g font-weight="bolder" id="x">
> >      </g>
> >    </svg>
> 
> It will be a numerical value; the precise value would depend on the font 
> and what weights it provides.

In that case SVG is incompatible with CSS. Please correct this 
incompatibility. (See the last few paragraphs of CSS 2.1 section 15.6 to 
see the formal definition of font-weight's computed value.)


> > (Please quote the text that you are using to answer this question,
> > since the specification has changed since the last publication.)
> 
> <dt class="label">bolder</dt>
> <dd><p>Specifies the next weight that is assigned to a font that is
> darker than the inherited one. If there is no such weight, it simply
> results in the next darker numerical value (and the font remains
> unchanged), unless the inherited value was "900", in which case the
> resulting weight is also "900".</p></dd>

The word "computed" doesn't appear in this paragraph, so clearly it can't 
be defining the computed value.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 9 June 2006 18:51:51 UTC