- From: Yves Lafon <ylafon@w3.org>
- Date: Tue, 9 Oct 2012 09:03:37 -0400 (EDT)
- To: Øyvind Stenhaug <oyvinds@opera.com>
- cc: www-style@w3.org
On Tue, 9 Oct 2012, Øyvind Stenhaug wrote: > On Tue, 09 Oct 2012 13:28:35 +0200, Yves Lafon <ylafon@w3.org> wrote: > >> Hi, >> The spec is a bit silent about that, but is it ok to have negative >> percentages or percentages over 100%? > > The editor's draft says that "[i]f a keyframe selector specifies negative > percentage values or values higher than 100%, then the keyframe will be > ignored." Ah good. Thanks! >> It is not specified at all, so it should be allowed, and if you have >> -20% { >> top: 10px; >> animation-timing-function: ease-out; >> } > > Even with the working draft, this is not valid per the keyframes_blocks > grammar. keyframe_selector: [ FROM_SYM | TO_SYM | PERCENTAGE ] S* [ ',' S* [ FROM_SYM | TO_SYM | PERCENTAGE ] S* ]*; and PERCENTAGE allows -20% That said, the new prose is good enough to constraint what's valid or not. -- Baroula que barouleras, au tiéu toujou t'entourneras. ~~Yves
Received on Tuesday, 9 October 2012 13:03:46 UTC