W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: [CSS3] proposal to add attribute 'size'

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Sun, 31 Jan 2010 20:35:11 +0100
Message-ID: <4B65DB6F.7070907@disruptive-innovations.com>
To: news@terrainformatica.com
Cc: www-style <www-style@w3.org>
Le 31/01/10 19:47, Andrew Fedoniouk a écrit :

> I propose to add attribute 'size' that is a shorthand attribute for
> 'width' and 'height' attributes.
>
>
> size: [ <length> | <percentage> | auto ]{1,2}
>
> If it has single value then both 'width' and 'height' attributes
> will get that value.
> If it has two values than first go to 'width' and second - to 'height'.
>
> Beside other things such shortcut is useful for cases like transitions.
> When you will need to define transition in both dimensions you can use
> name 'size'.
>
> Not too much of course but to be able to write something like this:
>
> body { size:100%; }
>
> would be good.
>

First, it's not an 'attribute' but a 'property' :-)
Second, the 'size' property already exists in CSS for paged media.

http://www.w3.org/TR/css3-page/#page-size-prop

</Daniel>
Received on Sunday, 31 January 2010 19:35:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:24 GMT