Confirmed users
489
edits
(→Notes from 2008-10-30 Meeting: -- Add note about SMIL and Transitions needing to insert at different points in the cascade) |
|||
Line 92: | Line 92: | ||
= Notes from 2008-10-30 Meeting = | = Notes from 2008-10-30 Meeting = | ||
* Decisions: | * Decisions: | ||
** Animated style should be stored in a special per-element rule node, which will be kept up-to-date by the SMIL/animation code. | ** SMIL-Animated style should be stored in a special per-element rule node, which will be kept up-to-date by the SMIL/animation code. | ||
** This rule node fits right in the middle of the CSS cascade (overrides other style, but not <code>!important</code> styles) | ** This rule node fits right in the middle of the CSS cascade (overrides other style, but not <code>!important</code> styles) | ||
** We'll detect style-changes that require transitions inside of <code>DidSetStyleContext()</code> | ** We'll detect style-changes that require transitions inside of <code>DidSetStyleContext()</code> | ||
** <code>DidSetStyleContext()</code> will need to know whether it was called due to a "real" style change, or due to a style change from a transition/animation. This will hopefully prevent transitions/animations from triggering new transitions each time they update the style. :) | ** <code>DidSetStyleContext()</code> will need to know whether it was called due to a "real" style change, or due to a style change from a transition/animation. This will hopefully prevent transitions/animations from triggering new transitions each time they update the style. :) | ||
** Initially, we won't support transitions on pseudo-elements (e.g. "first-letter") | ** Initially, we won't support transitions on pseudo-elements (e.g. "first-letter") | ||
** <b>UPDATE</b>: SMIL and CSS Transitions <b>need to insert at different points</b> in the cascade, because: | |||
*** SMIL's animated style needs to be inherited by its children (e.g. animating font-size on the document) | |||
*** CSS Transitions' animated style should <b>never inherit</b>, because it's inherently a per-element animation, on changes to <b>that element's</b> computed style |