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

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.

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 08:36:28 UTC