W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2015

Re: [web-animations] Do we need to store original timing values when they are invalid?

From: Brian Birtles <bbirtles@mozilla.com>
Date: Thu, 26 Nov 2015 09:02:24 +0900
To: "public-fx@w3.org" <public-fx@w3.org>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <56564C10.90300@mozilla.com>
On 2015/11/26 8:36, Brian Birtles wrote:
> If that's the case, maybe the original example should preserve
> "iterations = -1" for consistency and authors just need to be careful to
> always query getComputedTiming() if they want sensible results?

And just to argue the opposite side, if we introduce a new fill mode, 
say, "animation-end", implementations that don't support it will throw 
an exception due to WebIDL's handling of enums. So we're not going to be 
able to avoid exceptions altogether. (Even if we redefine enums as 
DOMStrings etc. we'll still have trouble if we later extend a double 
member to be (double or DOMString) etc.)

So, you could argue that throwing an exception for { iterations: -1 } is 
consistent with that.

I'm really not sure which is best but I'm leaning towards the currently 
specified behavior.

Best regards,

Brian
Received on Thursday, 26 November 2015 00:03:01 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 26 November 2015 00:03:02 UTC