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

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 UTC