Clip-path — Allowed
This gauge covers Chapter 17: shaping visible boxes with CSS clip-path.
Learning goal
Use clip-path to reveal only part of an element with basic shape functions,
without changing layout size, and keep important content reachable.
Inherited tools
Everything allowed through ./phase2-allowed.html remains available for page
chrome (spacing, colour, borders, basic typography).
img may appear so learners can clip a photograph as well as a solid box.
New CSS
clip-path- Shape functions:
circle(...)ellipse(...)inset(...)polygon(...)clip-path: noneto clear a clipobject-fit: coverwhen a clipped photo fills a fixed slotaspect-ratiofor responsive square photo slots
Learning rules
clip-pathhides parts of an element visually. The element's layout box (space it occupies) does not shrink to the visible shape.- Prefer basic shapes (
circle,ellipse,inset,polygon) in this chapter. Do not use SVGpath()or external SVGurl(#id)references yet. - Percentages in shape arguments are relative to the element's own box.
- Do not put required text, controls, or instructions only in a clipped-away region. Clipped content can be hard or impossible to perceive.
- When clipping a photo, keep a meaningful
alton theimg. The clip is presentation; the image meaning stays in HTML. - Combine one clear shape per demo. Stacking many polygons on one lesson page makes the cascade harder to follow.
- This chapter is about
clip-path, not decorative clipart assets and notoverflow: hidden(a related but different tool).
Pages
01-basic-shapes.html—circle,ellipse,inset02-polygon.html—polygon(...)custom silhouettes03-clip-image.html— clip a photograph04-shaped-cards.html— combine shapes on cards