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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 7 Jan 2013 10:33:15 -0800
Message-ID: <CAAWBYDDd3tJT-9i50ZadL7cQ3h7HqCHghO00+zsLfEqSL2qOQw@mail.gmail.com>
To: Erik Dahlstrom <ed@opera.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Jan 7, 2013 at 8:48 AM, Erik Dahlstrom <ed@opera.com> 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. ]]

Huh, I didn't think this was ambiguous.  We can do a correction in the
CR, as it's editorial, if necessary.

~TJ
Received on Monday, 7 January 2013 18:34:01 GMT

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