Terminal First Testing With Kane CLI
Natural language browser & mobile app tests right from terminal

Design a CSS clip-path in the browser, drag polygon, circle, ellipse, or inset handles, and copy CSS, HTML, or Tailwind.
Choose a shape
Start from one
Holes in overlaps
Color for preview
Optional photo
Load existing value
Generate
A CSS clip path generator is a browser tool that writes clip-path values from polygon, circle, ellipse, or inset handles. It follows the clip-path property in CSS Masking Module Level 1 and the basic shape functions in CSS Shapes Module Level 1. You drag points, then copy the CSS.
TestMu AI keeps the math in your tab. All processing happens in your browser. No data is uploaded. Pair it with the CSS Triangle Generator when you only need a three-point caret, or the Gradient Generator when the clipped box should show a fill.
The generator stores each handle as a percentage of the preview box. Percentage coordinates start at the top left (0% 0%) and end at the bottom right (100% 100%). A default triangle is polygon(50% 0%, 100% 100%, 0% 100%). That value scales with the element, which is the usual choice for UI crops.
Section 5 of CSS Masking Module Level 1 says a clipping path changes paint, not layout. The element keeps its width and height. Neighbors do not wrap around the silhouette. MDN clip-path lists the same four basic shapes this tool writes, plus path() and url() for SVG clipPath references.
Generate snapshots the live value into CSS, HTML, and Tailwind boxes. The CSS block writes both -webkit-clip-path and clip-path. Tailwind uses the arbitrary property form with spaces turned into underscores.
The generator writes clip-path from the live preview. Pick a shape, drag the handles, then Generate to fill the CSS, HTML, and Tailwind boxes.
The widget covers the four basic shapes from CSS Shapes Module Level 1 and the even-odd fill rule that CSS polygon() accepts. These are the controls you get in this tab:
Use clip-path when a rectangle or border-radius cannot describe the crop. The clipped box still takes its full space, so you plan padding and overlap yourself. Common jobs:
Layout around a clipped cell often starts in the CSS Grid Generator. Contrast of a pale crop on white is an accessibility testing concern when the remaining pixels are the only cue.
CSS Masking Module Level 1 defines both clipping and masking. Clipping is a hard inside or outside cut. Masking uses an image or gradient as alpha. Overflow hidden only crops to the padding box.
| clip-path | mask-image | overflow hidden |
|---|---|---|
| Hard geometric cut | Soft alpha from an image or gradient | Rectangle crop to the padding box |
| Clicks outside the shape miss | Hit testing follows the alpha in supporting browsers | The full box still receives events |
| Does not change layout size | Does not change layout size | Does not change layout size |
| polygon, circle, ellipse, inset, url | Images, gradients, SVG masks | No shape functions |
Filter experiments on a nearby photo belong in the CSS Filter Generator. Keep clip-path for the silhouette and filters for blur or contrast.
The CSS clip-path property cuts an element's paint to a geometric region. Pixels inside the shape stay visible. Pixels outside are discarded. CSS Masking Module Level 1 defines the property. You can pass polygon(), circle(), ellipse(), inset(), or a url() to an SVG clipPath.
No. Section 5 of CSS Masking Module Level 1 states that a clipping path affects rendering, not geometry. The element still occupies its original width and height in the document flow. Neighboring boxes do not wrap around the visible silhouette. Use shape-outside on a float if you need text to follow the edge.
Yes, when both keyframes use the same function and the same number of points. A 6-point polygon can morph into another 6-point polygon. A 3-point triangle cannot interpolate to a 6-point hexagon and will jump. circle() can transition to another circle(). This generator writes a static value. You add the transition in your stylesheet.
Current Chrome, Firefox, Edge, and Safari paint polygon(), circle(), ellipse(), and inset() without a prefix. MDN marks clip-path as Baseline widely available since January 2020. Internet Explorer 11 does not implement those basic shapes. This tool also writes -webkit-clip-path for older WebKit.
Percentage coordinates are relative to the element's own box, starting at the top left (0% 0%) and ending at the bottom right (100% 100%). polygon(50% 0%, 100% 100%, 0% 100%) is a triangle that scales with the element. Absolute lengths such as px stay fixed when the box resizes.
Apply clip-path directly to the img or to a wrapper that holds a background-image. A common avatar crop is circle(50%) on the image. The image file is not rewritten. The browser still downloads the full bitmap and paints only the clipped pixels. Drop a preview photo in this tool to check the crop.
Current evergreen browsers accept unprefixed clip-path. Safari versions before 13.1 needed -webkit-clip-path for basic shapes. This generator writes both lines so a stylesheet still clips on older iOS WebKit. Check the pair on TestMu AI if you still support those versions.
Use polygon() with the even-odd fill rule. Draw the outer outline, then a second loop that sits inside it. evenodd treats the inner loop as a hole. Nonzero, the default, fills both loops. This tool's Even-odd control writes polygon(evenodd, ...) for the current points.
Check commas between coordinate pairs and a space between x and y. A missing % unit is a common miss. If you used url(#id), the SVG clipPath must exist in the same document. A parent with overflow hidden can also hide the silhouette. Compare your rule to the preview in this tool.
No. Shape points, the fill color, and any preview image stay in memory in this tab. There is no account and no server round trip. All processing happens in your browser. No data is uploaded. Close the tab and the values are gone.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance