[css-borders-4] corner-shape angle
vs bevel
· Issue #12232 · w3c/csswg-drafts (original) (raw)
Seems like the name for this type of corner has gone back and forth from bevel
to angle
and now back to bevel
over time but I can't find any actually public conversation about why these changes were made just that they were. So some thoughts:
- Potential the thinking is reuse bevel from SVG's
stroke-linejoin="bevel"
. Although I'm not entirely sure that the corner-shape use is the same as what stroke-linejoin is doing? - Apparently in wood/medal working
bevel
is technically reserved for angles that cover the entire height or width of an object.
"A bevel refers to an angled cut that connects two parallel surfaces of a part."
The technically correct term for what we want here I guess is "chamfer". To be clear I'm not suggesting we use "chamfer" as a value. Don't think that most folks will know what it means (the default spell check doesn't seem to know what it is either). But it makes it clear that bevel
is probably not the technically correct name for what that's worth.
source: https://www.madearia.com/blog/chamfer-vs-bevel/
angle
seems more straightforward to me. It's a word that everyone is already familiar with I'm not sure if bevel is as familiar to folks?- In my playing around with corner shape I've already accidentally written the word
angle
for the value a number of times and it's taken a bit for me to realize that was my mistake. In all honestly i've also misspelled it asangel
a few times. - with
angle
is will devs think they can use css values with it. As in: "where do I say I want a42deg
angle" which is not how corner shape works.