W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: [css-counter-styles] Behavior of setting attributes

From: Simon Sapin <simon.sapin@exyr.org>
Date: Fri, 07 Feb 2014 13:43:41 +0000
Message-ID: <52F4E30D.9000301@exyr.org>
To: www-style@w3.org
On 07/02/2014 13:20, Xidorn Quan wrote:
> Hi,
> I have a question about the behavior of the DOM API:
> If a string which is valid in grammar while invalid in other aspect is
> set to an attribute in CSSCounterStyleRule, what should happen? For
> example, when the system is numeric, but a string contains only one
> symbol is set to symbols, or the additive-symbols attribute is set to
> a non-descending list. Should such strings be accepted or rejected?

I think they should be rejected. The setter should accept or reject the 
same values as the declaration would in a stylesheet. Maybe "grammar" is 
not the right term to use in this bit of spec, but I don’t have a better 

Simon Sapin
Received on Friday, 7 February 2014 13:44:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC