- From: Sigurd Lerstad <sigler@bredband.no>
- Date: Sat, 25 Oct 2003 22:17:59 +0200
- To: <www-svg@w3.org>, <www-style@w3.org>
Hello, I've asked this question about 4 times now, and not getting any answer. I really NEED an answer to these questions, so please please please someone answer. Reference to the spec is below: I have some questions that I feel the spec isn't clear about. 1. After writing the results of the animations into the override style declaration (the one returned by getOverrideStyle) Is the style declaration found in getComputedStyle modified to contain the new computed values resulting from the animations? Or is getComputedStyle always kept as the base value of the css properties? 2. Does the style declaration returned from getOverrideStyle() contain all css properties, just like for getComputedStyle()? Or does it just contain the css properties that are being animated for that element? thanks, -- Sigurd Lerstad *********************************************************************** http://www.w3.org/TR/2001/REC-smil-animation-20010904/#AnimFuncTiming 3.5. The animation sandwich model Note that animations manipulate the presentation value coming out of the OM in which the attribute is defined, and pass the resulting value on to the next layer of document processing. This does not replace or override any of the normal document OM processing cascade.? Specifically, animating an attribute defined in XML will modify the presentation value before it is passed through the style sheet cascade, using the XML DOM value as its base. Animating an attribute defined in a style sheet language will modify the presentation value passed through the remainder of the cascade.? In CSS2 and the DOM 2 CSS-OM, the terms "specified", "computed" and "actual" are used to describe the results of evaluating the syntax, the cascade and the presentation rendering. When animation is applied to CSS properties of a particular element, the base value to be animated is read using the (readonly) getComputedStyle() method on that element. The values produced by the animation are written into an override stylesheet for that element, which may be obtained using the getOverrideStyle() method. These new values then affect the cascade and are reflected in a new computed value (and thus, modified presentation). -- Sigurd Lerstad
Received on Saturday, 25 October 2003 16:13:20 UTC