W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [css3-transforms][css4-background] Should the spec have {background,transform,perspective}-origin-x/y

From: Florian Rivoal <florian@rivoal.net>
Date: Fri, 12 Oct 2012 18:36:32 +0200
To: Dirk Schulze <dschulze@adobe.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <ff9a15c3-2af6-4a24-a91b-f3edb8853f02@email.android.com>
Variables are a geberic mechanism which can do many things, one of which is to replace the need for this kind of long hand. If this was the only thing variables did, you could say that they are made unnecessary by the addition of longhands, but variables can do other things, and so will stay around.

On the other hand, the -x and -y properties do not add anything that cannot be achieved through variables AND cause problems with logical directions. If something is unnecessary and problematic, why have it?


>> Due to things like that, we should generally stay away from
>> introducing *-x and *-y properties, especially since they don't add
>> anything new to the platform now that we have variables.
>Or you come to the opposite conclusion, now that we have transition and

>> In any situation where we are tempted to add a pair foo-x and
>> foo-y properties as longhands to an existing shorthand of the type
>> "foo: x y;", we need to remember that users can get the exact same
>> effect by manually setting "foo: var(x,0) var(y,0);" and then using
>> the var-x and var-y properties the way they would
>> have used the foo-x and foo-y properties.
>> - Florian
Received on Friday, 12 October 2012 16:36:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC