size property as a shorthand for width/height

Hello.

What if we add the `size` CSS-property as a shorthand for `width`/`height` pair?

For example:

šššš.foo {size: 10px; }

would set both `width` and `height` properties to `10px`.

And:

šššš.bar {size: 2em 3em; }

would set `width` to `2em` and `height` to `3em`.

This can be (and is) implemented via a preprocessor, but preprocessors exist just to overcome current CSS shortcomings, while it makes sense to overcome them on CSS-itself level to make CSS itself more usable and self-contained in the long term.

Thanks.

Received on Monday, 1 December 2014 15:11:51 UTC