I am trying to make a simple conic-gradient with css, but there is a strange horizontal line appearing. The lines are unpredictable and sometimes go away when the window is resized.
div {
width: 101.5px;
height: 101.5px;
background: conic-gradient(
#000 0% 7%,
#cfcfcf 7.3% 40.3%,
#666 40.6% 73.7%,
#000 74% 100%
);
}
<div></div>
Why is this happening? Should I abandon conic-gradients altogether?
I'm on an M1 MacBook in Chrome, and I only see this issue when:
So a couple of possible options would be to: