W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 22 May 2020 20:23:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-632895893-1590179032-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:07 UTC