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

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 UTC