Re: [csswg-drafts] [css-backgrounds] Order of values for border shorthands is unclear (#5100)

The full syntax is like `border-width: top right bottom left`.
If you only provide 3 values (`border-width: top right bottom`), then left is missing.
If you only provide 2 values (`border-width: top right`), then bottom and left are missing.
If you only provide 1 value (`border-width: top`), then right, bottom and left are missing.

So you know which sides are missing because you match greedily, sides can only be omitted at the end.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5100#issuecomment-632895893 using your GitHub account

Received on Friday, 22 May 2020 20:23:55 UTC