W3C home > Mailing lists > Public > www-svg@w3.org > September 2003

computed/override stylesheet

From: Sigurd Lerstad <sigler@bredband.no>
Date: Tue, 30 Sep 2003 19:21:03 +0200
Message-ID: <0fec01c38777$39b3d290$6e1273d5@mmstudio>
To: <www-svg@w3.org>


Two SVG Animation questions that I feel the spec isn't clear about.
(Reference to the spec is below:)

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?

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?


Sigurd Lerstad



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).
Received on Tuesday, 30 September 2003 13:17:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:59 UTC