Open chriskirknielsen opened 1 month ago
Potentially slightly related: #713
Not ridge/grove/inset/outset related but found out Safari still doesn't have circular dotted borders for border-style: dotted;
It also breaks pretty badly when you add a border-radius above 6px.
(FYI, I remember Chrome having these same issues at one point but they have since been fixed)
There is no standard for this yet, see: https://github.com/w3c/csswg-drafts/issues/9393
@nt1m Oh thank you for sharing, I had not seen this… thought I might be the only person to have tried to use these border styles in this century haha. (I see we both ran into this issue while making our websites 😅)
I implemented the WebKit algorithm to honor the border-color with 3D styles and I'm also disappointed by the lack of standard. Happy to align to whatever algorithm ends up being standardized.
Description
When using the special 3D-esque
border-style
values ofridge
orgroove
, browsers render them with very inconsistent shifts in color when using darker colors:Firefox
Remains close to the source color, the effect being subtle for darker colors
Chrome
Pushes to the extremes for the light and dark versions, creating a sharp contrast
Safari
Brightens the color a lot before creating a slightly darker and lighter version
In my tests, I am using a dark brown (
#2f1913
), where this difference is very noticeable. However, if you use a nativered
value, it looks consistent across all 3 major browsers.You can check the result in this demo: [interop issue] ridge and groove border-style cross-browser differences (update the
--c
property to change the colors).Obviously, this is a very low priority, but it still would be nice to get consistency across browsers!
Specification
W3C
Additional Signals
No response