CartVisual
Sign inCreate account

Logo studio / PRACTICAL ANSWER

Why is my SVG logo's soft shadow cut off even though the artwork fits the viewBox?

An SVG filter has its own processing region. A blur or drop shadow extending beyond that region can be clipped even when the underlying logo fits inside the SVG viewBox. Inspect the filter's x, y, width, height and filterUnits attributes before enlarging the artwork or changing the logo's proportions.

01 / WHY IS MY SVG LOGO'S SOFT SHADOW CUT OFF EVEN THOUGH THE ARTWORK FITS THE VIEWBOX?

Distinguish the three relevant boundaries

An SVG logo can involve at least three different geometric boundaries: the original artwork, the SVG viewport defined in relation to its viewBox, and the region where an SVG filter is evaluated.

The viewBox controls how the SVG's coordinate space maps into its displayed viewport. It does not automatically guarantee enough room for every shadow or blur generated by a filter.

MDN's SVG filter documentation explains that a filter is evaluated only within its filter region. Content the filter would paint beyond that region is clipped.

This creates a distinctive symptom: the logo's sharp path edges remain complete, but its soft shadow ends abruptly along a straight boundary.

First determine whether the cutoff occurs near the artwork, the filter region or the outer SVG viewport. These boundaries can overlap, but they are not interchangeable.

If the logo itself is cropped, inspect the viewBox and viewport. If only the blurred effect is truncated while the original geometry remains intact, inspect the filter region first.

02 / WHY IS MY SVG LOGO'S SOFT SHADOW CUT OFF EVEN THOUGH THE ARTWORK FITS THE VIEWBOX?

Inspect the filter attributes

Find the filter definition used by the affected SVG element. The relevant attributes include x, y, width, height and filterUnits.

MDN documents default filter-region values of -10%, -10%, 120% and 120%. These provide a margin around the element, but a sufficiently broad blur or offset shadow can extend beyond it.

The filterUnits attribute determines how the filter region's coordinates are interpreted. Its default is objectBoundingBox, where values describe fractions or percentages of the referenced element's bounding box. With userSpaceOnUse, the region is expressed in the applicable user coordinate system.

Do not change units and numeric values simultaneously without recording both. A value meaningful in bounding-box fractions may not mean the same thing in user-space coordinates.

Individual filter primitives can also have subregions. If expanding the outer filter region does not resolve the cutoff, inspect whether a primitive is imposing its own boundary.

03 / WHY IS MY SVG LOGO'S SOFT SHADOW CUT OFF EVEN THOUGH THE ARTWORK FITS THE VIEWBOX?

Hypothetical example: a shadow around a round mark

Hypothetical example; no SVG was rendered or edited. A fictional circular brand mark uses a soft shadow that extends down and right.

Candidate A uses the default filter region. The stipulated result shows a sharp cutoff through the shadow's lower-right fade while the circle itself remains complete.

Candidate B expands the filter region to x="-40%" y="-40%" width="180%" height="180%", following the type of enlarged region illustrated by MDN. In the hypothetical comparison, the shadow can extend farther without encountering the original filter boundary.

Candidate C uses the expanded filter region but places the circle close to the outer SVG viewport edge. The shadow is still cut off at the viewport boundary.

Under these assumptions, B isolates the filter-region cause. C demonstrates why enlarging the filter region cannot automatically repair clipping imposed by another boundary.

The percentages are illustrative diagnostic values, not a universal logo-export preset.

04 / WHY IS MY SVG LOGO'S SOFT SHADOW CUT OFF EVEN THOUGH THE ARTWORK FITS THE VIEWBOX?

Make the smallest justified correction

Preserve the original SVG and create a working copy. Change only the filter-region bounds for the first comparison, keeping the logo geometry, viewBox and shadow parameters fixed.

Inspect the result at the same displayed size. If the abrupt shadow edge moves outward or disappears while the original logo remains unchanged, that supports the filter-region diagnosis.

If the cutoff persists at the outer viewport, inspect the viewport, overflow behavior and placement context separately. Do not enlarge the viewBox indiscriminately: adding excessive coordinate space can make the logo appear smaller in its destination.

If a primitive subregion is responsible, correct that specific boundary instead of repeatedly expanding the outer filter.

Open the actual delivered SVG in the intended viewer or application. Different importers may rasterize, simplify or reinterpret effects, so a correct browser rendering does not prove equivalent editability elsewhere.

Retain the approved logo geometry and any required clear space. A soft shadow may be decorative, but it should not alter the mark's proportions or become a substitute for production artwork.

The acceptance condition is that the intended shadow fades naturally without clipping and the complete logo remains correctly positioned at its destination size.

05 / WHY IS MY SVG LOGO'S SOFT SHADOW CUT OFF EVEN THOUGH THE ARTWORK FITS THE VIEWBOX?

Record your own observations

The filled rows are illustrative examples. Use the blank row for your own files and observations.

Hypothetical candidateFilter regionOther boundaryExpected observationDecision
ADefault marginsViewport adequateShadow truncated at filter edgeInvestigate filter region
B-40%, -40%, 180%, 180%Viewport adequateShadow fade retainedPreferred diagnostic
CExpanded regionViewport too closeShadow clipped at viewportInvestigate viewport separately

Download the editable CSV worksheet

06 / WHY IS MY SVG LOGO'S SOFT SHADOW CUT OFF EVEN THOUGH THE ARTWORK FITS THE VIEWBOX?

What the references establish

Published by CartVisualPublished Updated Evidence and editorial policy
SOURCES & SCOPE

Sources and further reading

Recorded source-review dates are listed individually below. An undated source does not inherit the article’s publication date. Software and platform rules can change; check the current original before acting.

QUESTIONS, ANSWERED

Frequently asked questions

Why doesn't enlarging the SVG viewBox always fix the shadow?

Because the filter region is a separate boundary. A shadow can be clipped inside the filter even when the viewport provides enough room.

Should I always set the filter region to very large values?

No. Expand it only enough for the intended effect, then inspect the result. Excessive regions are not a universal compatibility fix and do not address primitive or viewport clipping.

PREPARE ASSETS FOR YOUR NEXT STEP

Create supporting product assets in CartVisual.

Create new product creative assets in the workspace, then continue in your chosen tools. Third-party software procedures described in this guide take place in those applications; this workspace link does not imply an integration. Check current capabilities, account access and credit quotes.

Create account and open this workspace Check pricing and credits

Start with free concept and copy planning after sign-in. Image and video generation require available credits; review the quote before starting.

Already have an account? Open the workspace.