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

[CSS3] proposal to add attribute 'size'

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 31 Jan 2010 10:47:04 -0800
Message-ID: <4B65D028.8020502@terrainformatica.com>
To: www-style <www-style@w3.org>
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.

Andrew Fedoniouk.

Received on Sunday, 31 January 2010 18:47:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC