Solving Background Overflow With Inherited Border Radii | CSS-Tricks
Briefly

One common issue in CSS is that the backgrounds of child elements can overflow beyond the parent's border radius, leading to visual inconsistencies. Using 'overflow: hidden' solves this but can cause important content to be clipped.
Instead of 'overflow: hidden', to ensure the child's background fits within the parent's border radius, you can have the child inherit the parent's border radius using 'border-radius: inherit'. This is a more effective and precise method.
Applying a background directly to the .card achieves a similar visual effect, but in certain cases — such as when the card is split into sections — this isn't always practical.
For thorough control in border-radius applications, logical properties provide an alternative syntax to target individual corners effectively, which offers greater flexibility in complex layouts.
Read at CSS-Tricks
[
]
[
|
]