Free SVG ConverterLocal Rust WASM Vectorizer
Vector EngineeringNovember 12, 2026•6 min read

Why White Gaps Appear Between Adjacent SVG Shapes (Anti-Aliasing Seams Explained)

Understand why two SVG paths sharing identical coordinates still leak faint white hairline seams in Chrome and Safari, and how stacked under-bleed fixes it cleanly.

Why Mathematically Identical Edges Still Show a Seam

One of the most frustrating artifacts in SVG rendering happens when two colored shapes touch along a curved or diagonal edge—such as two wings of a multi-color brand logo. Even though both paths share the exact same coordinates in XML, browsers frequently display a faint 1-pixel white or background-colored hairline between them.

This is caused by independent edge anti-aliasing, known in graphics engineering as conflation. When a boundary pixel is split 50/50 between Blue and Dark Blue, the GPU rasterizes the first shape at 50% alpha over the white background, and then composites the second shape at 50% alpha on top. Mathematically, 0.5 + 0.5 × (1 - 0.5) equals 0.75—leaving 25% of the white background permanently bleeding through the seam.

Why shape-rendering='crispEdges' Is Usually the Wrong Fix

Many forum answers recommend adding shape-rendering='crispEdges' to the root <svg> tag. While disabling anti-aliasing removes the white seam, it also turns every smooth diagonal and circular curve into jagged, pixelated staircases—defeating the entire purpose of using SVG.

Fix 1: Hierarchical Stacking with Topological Under-Bleed

The cleanest production solution is extending the lower shape slightly underneath the upper shape (an under-bleed of 1px to 3px along shared internal boundaries). Because the lower shape now fully covers the seam pixels at 100% opacity before the upper shape is anti-aliased on top, zero background color can ever leak through—while outer curves remain silky smooth.

Fix 2: Adding a Matching Hairline Stroke on Legacy Cutout SVGs

If you already have a third-party cutout SVG that you cannot re-trace, adding a thin stroke matching each shape's fill color (such as stroke='#2563eb' stroke-width='0.6' stroke-linejoin='round') closes most sub-pixel gaps with minimal visual thickening.

Try It Right Now

Convert Multi-Color Logos Without Hairline Seams

Our local Rust WASM vectorizer uses stacked hierarchical under-bleed to seal color joins.

Try Logo to SVG Converter