- Previous thread: Fonts Formats are Off-Topic
- Next thread: [css3-transitions] transition properties should apply to all elements
- Threads sorted by date: web 200906
On Sat, Jun 27, 2009 at 11:44 AM, L. David Baron wrote:
> I have another question about transitions that I think ought to be
> addressed in the spec ( http://dev.w3.org/csswg/css3-transitions/ ),
> though in this case I'm not exactly sure how it should be addressed
> in the spec.
>
> This is the question of whether transition should be associated with
> a change in style on a content node, or a change in style on a
> rendering object (a box). Either solution poses a bunch of
> problems.
>
> If transitions are associated with the style on an element (DOM
> node), then we have problems in any case where a content node has
> more than one style. The main case of this I can think of is
> pseudo-elements. For example, I think it's hard to do something
> sensible with:
> p { color: gray; }
> p::first-line { color: black; }
> p:hover { color: blue; }
> p:hover::first-line { color: aqua; }
> a { transition: 3s color; }
> then it's really not clear what the transition on the anchor should
> be when the p goes into the :hover state (either when the anchor is
> split between the first line and the second, or when the anchor is
> entirely in the first line).
>
How about: if an element has a first-line or first-letter rule setting a
property on it, then transitions on that property are disabled for the
element and all its descendants.
Rob
--
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
> I have another question about transitions that I think ought to be
> addressed in the spec ( http://dev.w3.org/csswg/css3-transitions/ ),
> though in this case I'm not exactly sure how it should be addressed
> in the spec.
>
> This is the question of whether transition should be associated with
> a change in style on a content node, or a change in style on a
> rendering object (a box). Either solution poses a bunch of
> problems.
>
> If transitions are associated with the style on an element (DOM
> node), then we have problems in any case where a content node has
> more than one style. The main case of this I can think of is
> pseudo-elements. For example, I think it's hard to do something
> sensible with:
> p { color: gray; }
> p::first-line { color: black; }
> p:hover { color: blue; }
> p:hover::first-line { color: aqua; }
> a { transition: 3s color; }
> then it's really not clear what the transition on the anchor should
> be when the p goes into the :hover state (either when the anchor is
> split between the first line and the second, or when the anchor is
> entirely in the first line).
>
How about: if an element has a first-line or first-letter rule setting a
property on it, then transitions on that property are disabled for the
element and all its descendants.
Rob
--
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Conversations: [css3-transitions] transitions and rendering objects vs. DOM nodes
- [css3-transitions] transitions and rendering objects vs. DOM nodes by L. David Baron on 2009-06-26T23:46:00+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by Giovanni Campagna on 2009-06-27T14:26:59+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by L. David Baron on 2009-06-27T15:09:31+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by David Hyatt on 2009-06-27T21:40:06+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by Robert O'Callahan on 2009-06-29T04:01:18+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by Robert O'Callahan on 2009-06-29T04:14:38+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by David Hyatt on 2009-06-29T14:22:19+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by David Hyatt on 2009-06-29T14:23:26+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by Giovanni Campagna on 2009-06-29T14:30:59+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by David Hyatt on 2009-06-29T15:15:46+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by Robert O'Callahan on 2009-06-29T21:28:40+00:00
- Re: [css3-transitions] transitions and rendering objects vs. DOM nodes by David Hyatt on 2009-06-30T22:43:47+00:00
Related Threads
- GENERAL - Problems with ODBC Driver - pgsql
- squid-users - Blocking iPod browsers - squid
- osol-discuss - Disk on Module (DOM) for NAS boot drive? - opensolaris
- Opening a window # in the GNOME window list using a keyboard shortcut - ubuntu
- grails-user - How to query the database to acquire the latest Date - grails
- Re: qooxdoo-devel - How to make the Flash dynamically change the size according to parent widget? - javascript
- Hendrix - HOW DO I UNISTALL THIS WORTHLESS MOTHERFUCKER?!!!!!!! - firefox
- Hendrix - HOW DO I UNISTALL THIS WORTHLESS MOTHERFUCKER?!!!!!!! - firefox
- 512AN_MMWW2 it is a min pci exprress - debian
- svn commit: r991984 - /camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncDslTest.java - apachecamel
- eGroupWare-users - Funambol sync problem - egroupware
- Want one broker, two turn up - activemq