Comment #2 on issue 1783 by [email protected]: support css @keyframes
http://code.google.com/p/google-caja/issues/detail?id=1783

Controlling spec seems to be http://dev.w3.org/csswg/css-animations/

This CSS module describes a way for authors to animate the values of CSS properties over time, using keyframes. The behavior of these keyframe animations can be controlled by specifying their duration,
number of repeats, and repeating behavior.

---

Re parsing this stuff,

The following is the grammar for the keyframes rule.

keyframes_rule: KEYFRAMES_SYM S+ IDENT S* '{' S* keyframes_blocks '}' S*;

keyframes_blocks: [ keyframe_selector '{' S* declaration? [ ';' S* declaration? ]* '}' S* ]* ;

keyframe_selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*;

@{K}{E}{Y}{F}{R}{A}{M}{E}{S}   {return KEYFRAMES_SYM;}
{F}{R}{O}{M}                   {return FROM_SYM;}
{T}{O}                         {return TO_SYM;}

so within @keyframes "from { ... }" is not a set of property declarations for a selector that matches <from> elements.

Our parser needs to recognize
   from { ... }
   to { ... }
   <percentage> { ... }
as blocks that can themselves contain @rule blocks and selector rule blocks.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to