Re: [css3 transitions] margin, padding shorthand properties

Am 24.01.12 17:17, schrieb Aryeh Gregor:
> On Tue, Jan 24, 2012 at 8:44 AM, Joergen W. Lang<joergen_lang@gmx.de>  wrote:
>> Hello everyone,
>>
>> http://www.w3.org/TR/css3-transitions/#animatable-properties- gives a list
>> of animatable CSS properties.
>>
>> According to this list it is possible to animate the border-color and
>> border-width shorthand properties but not margin and padding.
>
> Don't refer to stuff in TR/ -- look at dev.w3.org for the latest version:
>
> http://dev.w3.org/csswg/css3-transitions/#properties-from-css-
>
> border-color and border-width now have the annotation "This is a
> shorthand, so probably shouldn't be here."  So I think you're right --
> it's an inconsistency in the list.

As an author I would intuitively expect that list to contain those 
properties - shorthand or not - that could be used as a value for 
'transition-property'.

I would like to propose that shorthand properties be included in that 
list. The 'Value' column could refer to the respective values of the 
single properties, e.g.:

Property Name  |  Value
------------------------------------------
margin         |  see individual properties
margin-top     |  percentage, length
margin-right   |  percentage, length

...and so on...

Otherwise it might be helpful to mention that the list refers only to 
single properties but that it is also possible to use shorthand notation 
as a value for transition-property.


Jørgen W. Lang

Received on Tuesday, 24 January 2012 18:14:39 UTC