Practical design workflow
Why an SVG Mask Looks Different in Alpha and Luminance

The Loon Workshop badge vanished from half its SVG after an export. The cyan artwork and its outline had not changed. The export had changed what counted as an opaque part of the mask. This guide isolates that difference with two identical masks and a four-point color check.
Quick answer
An SVG mask defaults to luminance when its mode comes from the SVG mask itself. In luminance mode, opaque black hides and opaque white reveals. In alpha mode, both reveal because both are fully opaque. Control the interpretation before changing the geometry. In a CSS embedding context, an explicit mask-mode on the masked element can override the SVG mask’s own mode.
1. Make the source and the mask independent
Place a cyan rectangle over a light gray background. Give both masks the same dimensions, with an opaque black left half and an opaque white right half. Apply one mode to each copy of the exact same cyan rectangle. Keep the mask bounds and the SVG viewBox fixed so the comparison exercises interpretation alone.
Take one sample well inside each half, away from the border and divider. In this proof, the luminance row reads gray, then cyan. The alpha row reads cyan in both halves. Save the four results beside the SVG so another reviewer can check that the browser they actually ship reproduces the result.
2. Identify which rule controls the live embed
Check where the SVG is read. If the mask is declared in the SVG and referred to directly inside it, use mask-type on the SVG mask element. For an SVG mask referenced by CSS, check the computed mask-mode on the element getting masked. A matching-source mode takes the SVG mask’s interpretation. An explicit alpha or luminance on the element controls it instead.
If the right half also disappears, look for a missing reference or duplicate ID before tweaking colors. If content is clipped only near an edge, inspect x, y, width and height on the mask as well as maskUnits and maskContentUnits. Keep those geometry checks separate from the left/right opacity result.
| Mask paint | Luminance interpretation | Alpha interpretation |
|---|---|---|
| Black | Hides artwork | Shows artwork |
| White | Shows artwork | Shows artwork |
| Fully transparent paint | Hides artwork | Hides artwork |
3. Bring the two rendered proofs into Ciyo
Import the comparison board and its separate alpha panel into a new Ciyo project. Put the alpha panel into the empty right-hand slot using Select. Keep both at a shared scale. The completed canvas comparison shows that the dark mask paint changes visibility by mode even though the cyan input is unchanged.
This canvas stage compares the rendered PNGs. Inspect the downloadable SVG where it will ship to test the mask itself. Reserve the original SVG for edits and share the side-by-side PNG proof with reviewers who only need to approve the appearance.

The aligned result

Record the exact test condition
Note whether the SVG is inline or embedded and name the rule that controlled the result. If a designer later changes black to transparent, rerun all four sample points. Fully transparent paint hides the content in both modes and can hide a mode regression in a less controlled test.
Download the review files
Specifications and related guides
Frequently asked questions
Why does opaque black reveal in alpha mode?
Alpha mode reads the mask pixel’s opacity. An opaque black pixel has the same full alpha as an opaque white pixel.
Is an SVG clip path the same as an SVG mask?
A clip path primarily defines inside and outside geometry. A mask can apply graduated visibility from opacity or luminance, which makes it suitable for the black, white and partial-coverage tests in this guide.
What if only a browser embed fails?
Open the standalone SVG to establish a control, then check the reference and computed CSS on the published element. Keep the same viewport and asset while comparing those two cases.
Keep the SVG proof beside the artwork
Put the two rendered results on one Ciyo canvas and compare them with a shared scale before shipping the SVG.