W3C home > Mailing lists > Public > www-style@w3.org > March 2012

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 27 Mar 2012 14:26:12 -0700
Message-ID: <4F723074.9020502@inkedblade.net>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:53 GMT