im trying to make react js component called "GBorder" which provide gradient border for the child element but the problem is when the child have border radius something like 100px the GBorder will not have a border radius of 100px without knowing before hand that the child have 100px of border radius enter image description here as you see in this pic the aqua color circle is the child element with border radius the parent element which is the gray color don't perfectly wrap the child element, i want a solution without using javascript just css
i did tried multiple css border tricks and i did search on stackoverflow for solution with no luck