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

Re: [css-counter-styles] position keywords in list-style

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 2 Apr 2014 18:01:34 -0700
Message-ID: <CAAWBYDA9A+bkutW-O2FRwLmTcra-qRJ4sMDSYL+8bae=NeH69A@mail.gmail.com>
To: Xidorn Quan <quanxunzhen@gmail.com>
Cc: Simon Sapin <simon.sapin@exyr.org>, www-style list <www-style@w3.org>
On Wed, Apr 2, 2014 at 5:03 PM, Xidorn Quan <quanxunzhen@gmail.com> wrote:
> In addition, we have another problem that if there is a counter-style called
> 'inside' or 'outside' and it is directly assigned to 'list-style-type', what
> serialized value should be returned for 'list-style'? If we returned
> 'outside outside none', than it breaks our rules. Considering this, maybe we
> should completely exclude these two keywords from possible counter style
> names.

This problem, at least, has an answer.  Shorthands simply aren't
always serializable; when they're not, you return "" (empty string) as
their serialization.  This can happen if a longhand uses a complex
syntax that isn't accepted in the shorthand, or, as in the case you
bring up, it would be ambiguous.

We can't *generally* exclude all keywords from all shorthands of the
property, because that changes over time (we occasionally invent new
shorthands for existing properties).

On the other hand, in the call today dbaron pointed out that
animation/transition/list-style all have ambiguity issues that they
solve by just trying as hard as they can to parse - you're allowed to
name an animation "backwards", for instance.

~TJ
Received on Thursday, 3 April 2014 01:02:21 UTC

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