Image shaping uses border radius, clip-path, and shape-outside to produce non-rectangular media presentation.
Shape techniques
- Rounded masks with
border-radius. - Polygon/ellipse cropping via
clip-path. - Text wrap around shapes with
shape-outside(float context).
Important interview questions and answers
- Q: Why use clip-path sparingly?
A: Can increase complexity and affect compatibility/performance. - Q: What powers text wrap around circles?
A:shape-outsidewith floated element. - Q: Accessibility concern with heavy shape effects?
A: Decorative crops should not obscure meaningful image content.
Practice: Change one property in the playground and observe cascade + layout in DevTools.