W3C home > Mailing lists > Public > www-style@w3.org > November 2011

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 7 Nov 2011 14:17:32 -0800
Message-ID: <CAAWBYDAg-b81rt=pa9pjcxS2SzKJSrXFM++EREC7xDM7BoBTgA@mail.gmail.com>
To: Brian Manthos <brianman@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT