W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [css3-values] double bar syntax and value repetition

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 22 Jan 2013 18:42:23 -0800
Message-ID: <50FF4E0F.4030805@inkedblade.net>
To: "www-style@w3.org" <www-style@w3.org>
On 01/07/2013 08:49 AM, Erik Dahlstrom wrote:
> Hi all,
>
> I have a question about the component value syntax, more specifically the
> double bars, ||, that can separate values in CSS syntax, used e.g in the
> background property[1]. The CSS3 values and units spec[2] states that:
>
> [[ A double bar (||) separates two or more options: one or more of them
> must occur, in any order. ]]
>
> What is the expected result is when an option is repeated? I don't see a
> clear answer in the spec. (The same spec text is also duplicated in CSS3
> Syntax [3]).
>
> My interpretation is that options cannot be repeated, but the spec text
> "one or more of them must occur" makes it seem as though e.g "paint-order:
> fill fill" is allowed (from SVG2 'paint-order' property [4] which also
> uses the || syntax).
>
> How about adding something to clarify that options can only occur once in
> the given set? E.g:
>
> [[ A double bar (||) separates two or more options: one or more of them
> must occur, in any order. Each option can occur at most one time. ]]

Then I'd wonder why the double amp (&&) doesn't have the same wording.

Not saying there isn't a way to clarify this, but I'm unsure about this
suggestion...

~fantasai
Received on Wednesday, 23 January 2013 02:42:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT