Basic Shapes
Reveal a circle, ellipse, or inset region with clip-path. The layout box stays rectangular.
circle, ellipse, inset
clip-path: circle(50%); clip-path: ellipse(45% 35% at 50% 50%); clip-path: inset(12% 8% round 16px);
circle
circle(50%)
ellipse
ellipse(…)
inset
inset(… round)
- The dashed outline shows the full layout box; only the clipped shape is painted.
- Percentages refer to the element itself.
insetcan add rounded corners withround.