Re: [css3-values][css3-background][css3-transforms] <position> vs. transform-origin

Hi Simon,

On Mar 26, 2013, at 1:36 AM, Simon Sapin <simon.sapin@exyr.org> wrote:

> Le 25/03/2013 19:51, Dirk Schulze a écrit :
>>>> 
>>>> transform-origin however removed this restriction:
>>>> 
>>>>>> [ <percentage> | <length> | left | center | right ]
>>>>>> &&
>>>>>> [ <percentage> | <length> | top | center | bottom ]
>>>> 
>>>> 
>>>> Was there a reason to remove the restriction on one property but keep it
>>>> in others?
>> I assume that this was an mistake. Thanks for noting.
> 
> Hi Dirk,
> 
> I see that you fixed this: https://dvcs.w3.org/hg/csswg/rev/546a3f53d20e
> But the new grammar does not allow swapping the order of two keywords, 
> which background-position allows.

That is true. I fixed it :) Thanks!

Greetings,
Dirk

> 
> Based on how CSS 2.1 expresses it, the full grammar should be:
> 
> 
>   [ left | center | right | top | bottom | <percentage> | <length> ]
> |
>   [
>     [ left | center | right | <percentage> | <length> ]
>     [ top | center | bottom | <percentage> | <length> ]
>   |
>     [ left | center | right ] || [ top | center | bottom ]
>   ]
>   <length>?
> 
> -- 
> Simon Sapin

Received on Tuesday, 26 March 2013 16:14:38 UTC