-
Notifications
You must be signed in to change notification settings - Fork 199
Add border, border-radius and outline #1794
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
Conversation
ddbeck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some thoughts on outlines, but I like the rest of this as it is.
| name: border-radius | ||
| description: The `border-radius` CSS property rounds the corners of the border drawn around an element. | ||
| spec: https://drafts.csswg.org/css-backgrounds-3/#corners | ||
| caniuse: border-radius |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's compute_from: css.properties.border-radius to better align with caniuse.
features/outlines.yml
Outdated
| description: The `outline` CSS property sets the color, style, and width of a line around an element, outside of the border. The `outline-offset` CSS property sets the distance from the element's edge to the outline. | ||
| spec: https://drafts.csswg.org/css-ui-4/#outline | ||
| status: | ||
| # The `outline` shorthand was introduced at a later date. | ||
| compute_from: css.properties.outline-style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a bit weird for us to name outline as the entry point to this feature, yet say that it's supported before the thing we name in the description exists. I think we have three options here (in order of my uninformed feeling about it):
compute_fromon the constituent properties (outline-color,-offset, etc.) and change the description to match.- Break out
outlineinto its own feature. - Drop the
compute_fromand say that outlines are a recent feature.
ddbeck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
FWIW I think caniuse was actually right here and BCD is wrong about outline. Filed this bug to correct BCD |
The caniuse for outline was just a bit too far off, with none of the features lining up with what I am seeing there.