Creative workflow

How to Restore a Hole in an SVG Compound Path

A textured charcoal ribbon curves around an ivory opening, with a small amber bead at its base.

The center of a fictional Rowan Studio badge should show the surface underneath. In the exported SVG it appears solid, even though both outlines are still there. We built two SVGs with identical path data and changed only the fill rule. This guide shows how to run the same check on your file.

Quick answer

Check that the outer and inner outlines are subpaths of one filled shape. Try evenodd on a copy. If the hole reappears, compare the copy with the approved artwork. Keep nonzero when the design intentionally depends on the directions of its subpaths.

1. Locate the inner and outer subpaths

Open the actual exported SVG in a text editor. Find the fill on the affected path and look for the second move command that starts its inner outline. Two separate filled objects cannot create a hole with fill-rule on the outer object. Combine the intended contours in a compound path in your vector editor, then re-export.

2. Compare the same geometry under both rules

In the sample, both rectangles run in the same direction. The default nonzero rule adds their winding contributions and fills the center. Evenodd counts crossings without regard to direction. Two crossings at the center produce an opening. Open both samples over a visible background and compare a point safely inside the center, away from antialiased edges.

3. Check the delivered embed

If changing the attribute has no effect, check styles applied to the same path. A CSS fill-rule declaration can override the presentation attribute. If the path is used inside a clipPath, inspect clip-rule at the clipping geometry. Review the full mark for new holes in regions where shapes overlap and repeat the check at the smallest size you intend to ship.

Start with the reference proof

The Ciyo board shows the reference on the left and an empty place for the comparison.
The Ciyo board shows the reference on the left and an empty place for the comparison.

Review the two proofs in Ciyo

Import the two rendered files on a Ciyo canvas and place the comparison beside the reference at the same scale. Keep each as its own movable item so a reviewer can compare them. Run the file or browser checks in the environment specified above.

The two original browser renders share the same outer edge. The nonzero sample has a teal center. The evenodd sample exposes the mint background.

The two original browser renders share the same outer edge. The nonzero sample has a teal center. The evenodd sample exposes the mint background.
Production Ciyo canvas, December 4, 2026. Fictional assets were placed and aligned by hand.

Examples and source files

Reference and related reading

Frequently asked questions

Can nonzero make an opening?

Yes. Opposite winding directions on the inner and outer contours can cancel at the center. Check the exported path rather than relying on how the editor labels the group.

Will the hole work on every background?

It should reveal whatever is underneath the compound path. Check for an independent background rectangle or a raster export that has already been flattened.

Review one export on the canvas

Place your two proofs side by side and record the specific change that passes your check.