- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Sun, 31 Jan 2010 13:50:34 -0800
- To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
- CC: www-style <www-style@w3.org>
Daniel Glazman wrote:
> 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' :-)
Whatever :)
> Second, the 'size' property already exists in CSS for paged media.
>
> http://www.w3.org/TR/css3-page/#page-size-prop
I do not see any problems with it.
The @page thing describes not an [DOM]element but rather viewport or
something close to it. So its properties are of different namespace/domain.
As far as I can see it is not conflicting with the 'size' property of
dom element if it will be defined. The size in @page media is kind of
specialization of more generic size of the box that I propose.
>
> </Daniel>
>
--
Andrew Fedoniouk.
http://terrainformatica.com
Received on Sunday, 31 January 2010 21:57:23 UTC