W3C home > Mailing lists > Public > www-style@w3.org > December 2011

[css3-transitions] Shorthand Property is too long with multiple CSS properties

From: Jon Ronnenberg <jon.ronnenberg@gmail.com>
Date: Sat, 31 Dec 2011 16:56:36 +0100
Message-ID: <CAPEZGVsx3VAsNoTYjB-Z0MSEWP5yh6tNi7oH6B0xVPmpHgrDYA@mail.gmail.com>
To: www-style@w3.org
Hi group.

The transition shorthand
property<http://www.w3.org/TR/css3-transitions/#the-transition-shorthand-property->
is
neither intuitive or very short when it comes to defining several CSS
properties.
E.G. transition: background-color 1s ease, color 1s ease;
A far more intuitive approach would be to define several properties in
the [<‘transition-property’> part.
I.E. transition: background-color, color 1s ease;
As the Draft elaborate on transition-property; Value: none | all | [
<IDENT> ] [ ‘,’ <IDENT> ]* it is fair to assume that this is also true when
it comes to the shorthand method. It is noted (in the Draft) that the first
value that can be parsed as a time is assigned to the transition-duration.
Hence allowing multiple properties before transition-duration should not
break existing implementations.
**

DISCLAIMER: I'm not a spec implementer but a front end developer (web
author). Any difficulties in parsing the above proposal haven't been
considered thoroughly. This discussion is only tested on the FF9 and WebKit
535.7 implementations.

Cheers, Jon.

PS. Sorry if this is a re-post. I didn't subscribe properly the first time
I emailed.
Received on Saturday, 31 December 2011 15:57:08 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:07 UTC