Skip to content

[css-borders] Can border-* shorthands allow independent borders? #1327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chharvey opened this issue May 5, 2017 · 0 comments
Open

[css-borders] Can border-* shorthands allow independent borders? #1327

chharvey opened this issue May 5, 2017 · 0 comments

Comments

@chharvey
Copy link

chharvey commented May 5, 2017

https://drafts.csswg.org/css-backgrounds-3/#the-border-shorthands

Building off of #1279 , I'd still like to suggest extending the border-* shorthand syntaxes to allow independent borders.

border-block  : <border-line> [ / <border-line> ]?
border-inline : <border-line> [ / <border-line> ]?
border        : logical? && [ <border-line> [ / <border-line> ]{0,3} ]

<border-line> = <line-width> || <line-style> || <color>

where logical is the keyword switch for logical properties, and

For any given 1–2 <border-line> values (including width || style || color), the border-block shorthand would set border-block-start and border-block-end, in that order. The second value, if absent, would copy from the first value. border-inline would behave respectively for inline-side borders.

The 1–4 <border-line> values on border would indicate standard order.

In all cases, the <border-line> groups would need to be separated by slashes.

@tabatkins tabatkins added the css-backgrounds-3 Current Work label May 16, 2017
@fantasai fantasai added css-backgrounds-4 and removed css-backgrounds-3 Current Work labels Sep 21, 2017
@SebastianZ SebastianZ changed the title [css-box] Can border-* shorthands allow independent borders? [css-borders] Can border-* shorthands allow independent borders? Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants