Re: [css3-background] background-position computed value

On Mon, Nov 7, 2011 at 2:02 PM, Brian Manthos <brianman@microsoft.com>wrote:

>  Sure.****
>
> ** **
>
> Input / Specified****
>
> 1              right 1px bottom 3px****
>
> 2              10em bottom****
>
> 3              bottom****
>
> 4              left 27px bottom 5px****
>
> 5              27px center****
>
> 6              50% center****
>
> 7              center 5px****
>
> 8              right 5% bottom 10%****
>
> 9              right 5px bottom 10%****
>
> 10           left 5px bottom 10%****
>
> ** **
>
> Computed (A)****
>
> 1              right 1px bottom 3px****
>
> 2              12345px 100%****
>
> 3              50% 100%****
>
> 4              left 27px bottom 5px****
>
> 5              27px****
>
> 6              50%****
>
> 7              50% 5px****
>
> 8              right 5% bottom 10%****
>
> 9              right 5px bottom 10%****
>
> 10           left 5px bottom 10%****
>
> ** **
>
> Computed (B)****
>
> 1              right 1px bottom 3px****
>
> 2              12345px 100%****
>
> 3              50% 100%****
>
> 4              left 27px bottom 5px****
>
> 5              27px****
>
> 6              50%****
>
> 7              50% 5px****
>
> 8              95% 90%****
>
> 9              right 5px bottom 10%****
>
> 10           5px 90%
>

 I don't understand your #5 and #6.  Those should be "27px 50%" and "50%
50%" respectively.

The B renditions of #8 and #10 are clearly wrong, as they go against the
explicit text of the computed value line.  A is correct.  (The spec doesn't
disallow computing #8 as "left 95% top 90%" and #10 as "left 5px top 90%",
though.)

~TJ

Received on Monday, 7 November 2011 22:18:29 UTC