I have a position:relative
green ring with a position:absolute
red clone :before
and a position:absolute
white clone :after
it covering both (since they are on the same place and have the same size).
The problem is: it renders bad on both browsers tested (Chrome and Firefox) where I still can see the green/red rings under the white mask. Let the green ring with overflow:hidden
partially fixes the problem removing the outer bleed; but the inner bleeding border stills there.
Why does it happens and how can I totaly hide the lower circles ?
body {
background: lavender;
}
#ring {
position: relative;
width: 100px;
height: 100px;
border-radius: 50%;
border: 50px solid green;
}
#ring:before {
content: '';
position: absolute;
top: -50px;
left: -50px;
width: 100px;
height: 100px;
border: 50px solid red;
border-radius: 50%;
}
#ring:after {
content: '';
position: absolute;
top: -50px;
left: -50px;
width: 100px;
height: 100px;
border-radius: 50%;
border: 50px solid white;
}
<div id=ring></div>
Update: here's a link of the complete (not minimal) scenario: Codepen which is only working on the updated Google Chrome at the moment;