-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Description
0 // 1 is valid according to the border-image grammar, but I am not sure the original intent was to allow //. The grammar has been modified (10 years ago) to prevent a trailing /. I think the following value definition would prevent //:
<'border-image-source'>
- || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]?
+ || <'border-image-slice'> [ / <'border-image-width'> | [ / <'border-image-width'> ]? / <'border-image-outset'> ]?
|| <'border-image-repeat'>There is no WPTs for a similar input. There is an existing WPT and I cannot say if this change would represent a back-compat issue.
Similarly, I am noting that you cannot set <bg-size> without defining <bg-position>: <bg-position> [ / <bg-size> ]?. Alternatively, it could be simplified in a consistent way with:
<'border-image-source'>
- || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]?
+ || <'border-image-slice'> [ / <'border-image-width'> [ / <'border-image-outset'> ]? ]?
|| <'border-image-repeat'>Metadata
Metadata
Assignees
Labels
No labels