Created attachment 467795 [details] Screenshot of Safari Technology Preview This bug exists in Safari Technology Preview 178 and 179. I'm not sure when exactly it was introduced. I noticed it because my own web site uses border-style groove. See the attached screenshots of https://developer.mozilla.org/en-US/docs/Web/CSS/border-style#result from Safari, Chrome, Firefox and Safari Technology Preview. They're all basically the same, except for Safari Technology Preview with border-style groove, ridge, inset, and outset.
Created attachment 467796 [details] Screenshot of Safari
Created attachment 467797 [details] Screenshot of Google Chrome
Created attachment 467798 [details] Screenshot of Firefox
<rdar://problem/115812372>
The Regression has been introduced by Bug 258725
I personally think the STP rendering is an improvement, since we actually respect the border-color instead of hardcoding to gray. We could probably increase the contrast of the shades a bit though.
Tweaking Color::lightened / Color::darkened should solve this.
Here's Gecko's algorithm to compute those colors: https://searchfox.org/mozilla-central/rev/077fc34d03b85b09add26b5f99f1a3a3a72c8720/gfx/wr/webrender/res/cs_border_segment.glsl#112-132
Pull request: https://github.com/WebKit/WebKit/pull/18022
Committed 268265@main (a4497016d608): <https://commits.webkit.org/268265@main> Reviewed commits have been landed. Closing PR #18022 and removing active labels.
Paper Trail To note that an issue has been opened on CSS WG. https://github.com/w3c/csswg-drafts/issues/9393