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

Chris Lilley wrote:
>  Ian Hickson <ian@hixie.ch>
>> 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.

So in the following markup:

<svg xmlns="http://www.w3.org/2000/svg" font-weight="100">
   <g font-weight="bolder" id="a" font-family="Helvetica">
     <g font-weight="bolder" id="b" font-family="Times"/>
     <g font-weight="bolder" id="c" font-family="Courier"/>
   </g>
</svg>

the computed font-weight for the element with id="c" depends on the Helvetica 
fonts available?  That doesn't make much sense to me, and contradicts CSS2.1 
(though CSS2 could be read in the way you propose, if one wanted to have this 
wacky behavior).

-Boris

Received on Friday, 9 June 2006 19:54:46 UTC