W3C home > Mailing lists > Public > www-style@w3.org > March 2013

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

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 26 Mar 2013 09:36:04 +0100
Message-ID: <51515DF4.1010708@exyr.org>
To: Dirk Schulze <dschulze@adobe.com>
CC: "www-style@w3.org" <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:07 GMT