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

Re: [css3-animations] CSSKeyframeRule and rules with multiple keys

From: Simon Fraser <smfr@me.com>
Date: Sun, 20 Mar 2011 09:19:58 -0700
Cc: www-style@w3.org
Message-id: <07EEE1CF-476E-41DE-9BFC-81AF3DB18CDD@me.com>
To: "L. David Baron" <dbaron@dbaron.org>
On Mar 19, 2011, at 9:55 pm, L. David Baron wrote:

> http://dev.w3.org/csswg/css3-animations/#DOM-CSSKeyframeRule says:
>  # The CSSKeyframeRule interface represents the style rule for a
>  # single key.
> and goes on to describe the keyText attribute as representing a
> single floating point number.
> 
> However, keyframe rules can have selectors with multiple numbers,
> e.g.:
>  25%, 75% { color: green }
> What should such a rule return for keyText?

I think it should return "25%, 75%".

> Also, what should happen when setting keyText?  For example, which
> of the following should work:
>  rule.keyText = "0.25";
>  rule.keyText = "0.25, 0.75";
>  rule.keyText = "25%";
>  rule.keyText = "25%, 75%";
> 
> (It would seem a little more consistent with style rules if keyText
> aligned with selectorText and actually represented the text of the
> selector, e.g., "25%, 75%".)

I agree that it would be cleaner if these were all just percentages.

Simon
Received on Sunday, 20 March 2011 16:20:37 GMT

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