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

Re: [css3-animations] OM for keyframes

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 30 Nov 2011 18:09:53 +0100
Message-ID: <4ED66361.7090805@disruptive-innovations.com>
To: www-style@w3.org
Le 23/11/11 17:08, Daniel Glazman a écrit :
> Implementing an editor for animations, I discover an API on keyframes
> is missing. If we have |findRule()| to find the keyframe rule
> corresponding to a given key, there is no API to retrieve the list
> of keys defined by a keyframes at-rule... And that's something
> editing tools will all do.
>
> I would recommend adding such a list; something like
>
> readonly attribute DOMStringList keyList;
>
> added to CSSKeyframesRule. It would contain an ordered list of
> unique keys, from 'from' (or 0%) to 'to' (or 100%) in increasing %age
> order.
>
> Thoughts?

FWIW, I have some unoptimized JS code implementing this in Bluegriffon
(Gecko-based):

   http://pastebin.mozilla.org/1389407

</Daniel>
Received on Wednesday, 30 November 2011 17:10:26 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT