Re: [css3-background] slash('/') in border-image shorthand (again)

On 03/07/2012 04:40 PM, Kang-Hao (Kenny) Lu wrote:
>
> I'll point out one more oddness with the current syntax. Like any issue
> related to syntax, this is in some sense only about aesthetics.
>
> Currently, the syntax component after<'border-image-slice'>  is an optional
>
>    [/<‘border-image-width’>? [ /<‘border-image-outset’>  ]?]
>
> . This has two implications:
>
> 1. A trailing slash is valid.
>
> 2. Two trailing slashes are not valid.
...
> I have four proposals to address these:
>
> A. Leave the current syntax as it is.
> B. Allow more tailing slashes.
> C. Disallow trailing slash at the end.
> D. Disallow empty component.

We went with option C, which was the original intent. The corrected
grammar follows:
   <‘border-image-slice’> [ / <‘border-image-width’> |
                            / <‘border-image-width’>? / <‘border-image-outset’> ]?

Please let us know if this satisfies your comment.

~fantasai

Received on Tuesday, 27 March 2012 21:26:40 UTC