Re: [CSS 2.1] How to handle rectangle values.

On 03/04/2010 07:42 AM, Boris Zbarsky wrote:
> On 3/4/10 10:19 AM, Robert Stam wrote:
>> All CSS 2.1 properties that can be specified as length value are
>> converted to the absolute length at the 'computed value' stage.
>>
>> However, the computed value of the 'clip' property is specified as 'For
>> rectangle values, a rectangle consisting of four computed lengths;
>> otherwise, as specified'.
>
> Right. In practice, the only value that can happen "otherwise" is "auto".
>
>> Does this mean (in deviation of all other properties) relative lengths
>> are not converted to absolute lengths at this stage and can thus be
>> inherited?
>
> No.
>
> That said, none of Presto, Webkit, Gecko implement this spec as it's
> currently written, in that they compute "auto" values in the rect to
> "auto", not to lengths [1]. Furthermore, the text for <shape> is
> self-contradictory in that it says:
>
> The value 'auto' means that a given edge of the clipping region
> will be the same as the edge of the element's generated border box
>
> but then talks about computed widths and heights. It presumably wants to
> talk about used widths and heights, right? Can we get these two issues
> corrected, please?

Filed as CSS2.1 Issue 190:
   http://wiki.csswg.org/spec/css2.1#issue-190

~fantasai

Received on Thursday, 5 August 2010 06:22:58 UTC