-
Notifications
You must be signed in to change notification settings - Fork 22.8k
New module: box and borders #40877
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
New module: box and borders #40877
Conversation
Preview URLs Flaws (21)URL:
(comment last updated: 2025-08-26 10:00:14) |
|
||
The **CSS borders and box decorations** module provides properties for adding borders, rounded corners, and box shadows to elements. This module extends borders and box decorations introduced in the [CSS backgrounds and borders](/en-US/docs/Web/CSS/CSS_backgrounds_and_borders) module, adding {{cssxref("corner-shape")}} and border-shape properties, logical {{cssxref("border-radius")}} properties, longhand properties for the {{cssxref("box-shadow")}} property, as well as properties to create partial borders. | ||
|
||
### Borders and box decorations in action |
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.
Don't start the heading sequence with H3
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.
@estelle couple of small comments, but mostly looking good. Approving.
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.
Sorry, one more small comment.
} | ||
|
||
select.addEventListener("change", setCornerShape); | ||
range.addEventListener("change", setCornerShape); |
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.
If you made this an input
handler instead, the user could see the radius change in real-time as they drag the slider handle, rather than only seeing a change on release.
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Also part of openwebdocs/project#147 |
goes with #40663