W3C home > Mailing lists > Public > www-style@w3.org > April 2012

[css3-animations] calc() in keyframe selectors?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 23 Apr 2012 14:39:42 -0700
Message-ID: <CAAWBYDDrX5u8CrK0vWfiv+oadkrLR1UnTNQ6qSoGGLkSg56jJA@mail.gmail.com>
To: www-style list <www-style@w3.org>
Kenny Lu raised an issue against V&U about specifying precisely where
calc() and other functions can be used.  One of the particular
questions he had was whether calc() was allowed in a keyframe
selector.

The definition of the syntax of @keyframes isn't clear whether it
specifically wants a PERCENTAGE token or just a <percentage> type
value.

I'd be okay if it wasn't allowed, but it's potentially useful, for the
same reason declaring percentage widths with calc() is useful - saying
"calc(100% / 7)" is clearer than "14.28%".

~TJ
Received on Monday, 23 April 2012 21:40:30 GMT

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