- 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>
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? Florian >> 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 >animation. > >> >> 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