Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
CSS Masking Module Level 1, with SVG 2 clipping, masking and overflow rules

Part of the W3C specification audit. One row per element, attribute, property, value and feature in scope. Findings come from reading Donner source at revision b39a524a2 and the specification versions listed below. No code was built or executed for this ledger, so every behavioral claim is a code-reading result until a test confirms it. All paths are relative to the repository root.

Pinned source revision: b39a524a2. All behavior statements are by code reading; nothing was built or run. Where the two renderers (CPU tiny-skia, GPU Geode) differ, the row says so; otherwise the logic lives in the shared driver (donner/svg/renderer/RendererDriver.cc, RenderingContext.cc) and applies to both.

Specs read

Spec Level Maturity Dated URL read
CSS Masking Module 1 CRD, 5 August 2021 (latest published TR) https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/
CSS Shapes Module (basic shapes, shape-box only) 1 CRD, 12 June 2025 https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/
CSS Images Module (<radial-size> only) 3 CRD, 18 December 2023 https://www.w3.org/TR/2023/CRD-css-images-3-20231218/
CSS Backgrounds and Borders (<repeat-style>, <bg-size>, <bg-position> only) 3 CRD, 11 March 2024 https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/
SVG 2, Rendering Model 2 CR Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html
SVG 2, Coordinate Systems 2 CR Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html
SVG 2, Styling (UA style sheet) 2 CR Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html
SVG 2, Painting (marker overflow) and Document Structure (symbol overflow) 2 CR Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/painting.html, struct.html
SVG 2, Clipping, Masking and Compositing 2 CR Snapshot, 06 October 2026 (removal stub pointing to CSS Masking) https://www.w3.org/TR/2026/CR-SVG2-20261006/masking.html

Inventory

Derivation:

  • Elements and attributes: the clipPath and mask lines of the SVG 2 CR element and attribute indexes (clipPath, mask; clipPathUnits, maskUnits, maskContentUnits, x, y, width, height on mask), with one val: row per enumerated value.
  • Properties: all 20 entries of the CSS Masking property index (clip, clip-path, clip-rule, mask, mask-border and its six longhands, mask-clip, mask-composite, mask-image, mask-mode, mask-origin, mask-position, mask-repeat, mask-size, mask-type), each with val: rows for every keyword, function and grammar alternative. For clip-path the <basic-shape> functions are the eight listed in CSS Shapes 1 section 3.1 (inset, xywh, rect, circle, ellipse, polygon, path, shape) and the box keywords are <geometry-box> = <shape-box> | fill-box | stroke-box | view-box. Value lists that CSS Masking imports by reference (<repeat-style>, <bg-size>, <position>) were read from CSS Backgrounds 3.
  • Features: one row per normative prose rule of CSS Masking sections 2, 5, 6, 7.10, 9, 10 and Appendix B and C, plus the clipping, masking, stacking-context and overflow rules of SVG 2 render.html (3.2, 3.4.1, 3.9, 3.11), coords.html (8.2 viewports, 8.10 bounding boxes, 8.11 object bounding box units) and the UA style sheet rule in styling.html 6.8.
  • Out of scope for an SVG user agent without script or CSS box layout, each with a not-applicable row: the WebIDL interfaces (Appendix C), CSS animation types, CORS fetch and timing rules for cross-origin sources (section 10; only same-document references resolve), and the clipped bounding-box option. mask-border-* and the positioned-mask longhands are in scope as properties (they apply to SVG elements) and are recorded as missing. Box-model-only wording (border-radius corner shaping for box clips, box-decoration-break, visible scrolling mechanisms) has no SVG counterpart and has no row.

Row keys (192):

el:clipPath
el:mask
attr:clipPathUnits@clipPath
val:clipPathUnits/userSpaceOnUse
val:clipPathUnits/objectBoundingBox
attr:maskUnits@mask
val:maskUnits/userSpaceOnUse
val:maskUnits/objectBoundingBox
attr:maskContentUnits@mask
val:maskContentUnits/userSpaceOnUse
val:maskContentUnits/objectBoundingBox
attr:x@mask
attr:y@mask
attr:width@mask
attr:height@mask
prop:clip-path
val:clip-path/none
val:clip-path/<clip-source> url()
val:clip-path/<basic-shape> || <geometry-box>
val:clip-path/<geometry-box> alone
val:clip-path/inset()
val:clip-path/xywh()
val:clip-path/rect()
val:clip-path/circle()
val:clip-path/ellipse()
val:clip-path/polygon()
val:clip-path/path()
val:clip-path/shape()
val:clip-path/fill-box
val:clip-path/stroke-box
val:clip-path/view-box
val:clip-path/border-box
val:clip-path/margin-box
val:clip-path/padding-box
val:clip-path/content-box
prop:clip-rule
val:clip-rule/nonzero
val:clip-rule/evenodd
prop:mask
val:mask/none
val:mask/<mask-source> url()
val:mask/<mask-layer> full grammar
val:mask/resets mask-border
prop:mask-image
val:mask-image/none
val:mask-image/<image>
val:mask-image/<mask-source>
val:mask-image/comma-separated list
prop:mask-mode
val:mask-mode/alpha
val:mask-mode/luminance
val:mask-mode/match-source
prop:mask-repeat
val:mask-repeat/repeat-x
val:mask-repeat/repeat-y
val:mask-repeat/repeat
val:mask-repeat/space
val:mask-repeat/round
val:mask-repeat/no-repeat
prop:mask-position
val:mask-position/<position>
prop:mask-clip
val:mask-clip/content-box
val:mask-clip/padding-box
val:mask-clip/border-box
val:mask-clip/fill-box
val:mask-clip/stroke-box
val:mask-clip/view-box
val:mask-clip/no-clip
prop:mask-origin
val:mask-origin/content-box
val:mask-origin/padding-box
val:mask-origin/border-box
val:mask-origin/fill-box
val:mask-origin/stroke-box
val:mask-origin/view-box
prop:mask-size
val:mask-size/auto
val:mask-size/cover
val:mask-size/contain
val:mask-size/<length-percentage>{1,2}
prop:mask-composite
val:mask-composite/add
val:mask-composite/subtract
val:mask-composite/intersect
val:mask-composite/exclude
prop:mask-type
val:mask-type/luminance
val:mask-type/alpha
prop:mask-border
prop:mask-border-source
val:mask-border-source/none
val:mask-border-source/<image>
prop:mask-border-mode
val:mask-border-mode/luminance
val:mask-border-mode/alpha
prop:mask-border-slice
val:mask-border-slice/<number-percentage>{1,4}
val:mask-border-slice/fill
prop:mask-border-width
val:mask-border-width/<length-percentage>
val:mask-border-width/<number>
val:mask-border-width/auto
prop:mask-border-outset
val:mask-border-outset/<length>
val:mask-border-outset/<number>
prop:mask-border-repeat
val:mask-border-repeat/stretch
val:mask-border-repeat/repeat
val:mask-border-repeat/round
val:mask-border-repeat/space
prop:clip
val:clip/auto
val:clip/rect()
feat:css-masking-1/clippath-content-model
feat:css-masking-1/clippath-disallowed-children-ignored
feat:css-masking-1/clippath-use-direct-reference
feat:css-masking-1/clippath-use-indirect-reference
feat:css-masking-1/clippath-text-child
feat:css-masking-1/clippath-raw-geometry
feat:css-masking-1/clippath-child-display-visibility
feat:css-masking-1/clippath-union-of-children
feat:css-masking-1/clip-path-on-clippath-child
feat:css-masking-1/clip-path-on-clippath-element
feat:css-masking-1/clippath-no-ancestor-clip-inheritance
feat:css-masking-1/clippath-transform
feat:css-masking-1/clippath-never-rendered-display-none
feat:css-masking-1/clippath-property-inheritance
feat:css-masking-1/clip-pointer-events
feat:css-masking-1/clip-does-not-change-geometry
feat:css-masking-1/empty-clip-path
feat:css-masking-1/invalid-clip-reference
feat:css-masking-1/clip-rule-referencing-element-ignored
feat:css-masking-1/clip-rule-not-for-basic-shapes
feat:css-masking-1/clip-rule-vs-fill-rule
feat:css-masking-1/clip-path-stacking-context
feat:css-masking-1/clip-ancestor-intersection
feat:css-masking-1/basic-shape-reference-box-mapping
feat:css-masking-1/stroke-bounding-box-algorithm
feat:css-masking-1/mask-luminance-computation
feat:css-masking-1/mask-luminance-linearrgb
feat:css-masking-1/mask-alpha-computation
feat:css-masking-1/mask-image-channel-handling
feat:css-masking-1/mask-uncovered-region-transparent
feat:css-masking-1/mask-multiplies-alpha
feat:css-masking-1/mask-xywh-defaults-all-unspecified
feat:css-masking-1/mask-region-clip
feat:css-masking-1/mask-zero-or-negative-size
feat:css-masking-1/mask-on-mask-element
feat:css-masking-1/nested-masks
feat:css-masking-1/mask-recursion
feat:css-masking-1/mask-display-opacity-filter-not-applied
feat:css-masking-1/mask-property-inheritance
feat:css-masking-1/mask-content-model
feat:css-masking-1/mask-transform-ignored
feat:css-masking-1/invalid-mask-reference
feat:css-masking-1/effect-order
feat:css-masking-1/multiple-mask-layers
feat:css-masking-1/mask-image-css-images
feat:css-masking-1/mask-stacking-context-isolated-group
feat:css-masking-1/mask-no-geometry-or-hit-effect
feat:css-masking-1/security-fetch-and-timing
feat:css-masking-1/dom-interfaces
feat:css-masking-1/property-animation-types
feat:svg2-render/never-rendered-clippath-mask
feat:svg2-render/non-rendered-descendants-in-clip-mask
feat:svg2-render/visibility-hidden-in-clip
feat:svg2-render/graphical-effect-isolated-fragment
feat:svg2-render/stacking-context-mask-element
feat:svg2-render/stacking-context-clip-path-property
feat:svg2-render/stacking-context-mask-property
feat:svg2-render/stacking-context-clip-property
feat:svg2-render/stacking-context-nested-svg-overflow
feat:svg2-render/clipping-and-masking-delegated
feat:svg2-render/overflow-visible
feat:svg2-render/overflow-hidden
feat:svg2-render/overflow-scroll
feat:svg2-render/overflow-auto
feat:svg2-render/ua-stylesheet-overflow
feat:svg2-render/overflow-root-svg
feat:svg2-render/overflow-nested-svg
feat:svg2-render/overflow-symbol
feat:svg2-render/overflow-marker
feat:svg2-render/overflow-pattern
feat:svg2-render/overflow-image
feat:svg2-render/overflow-foreignobject
feat:svg2-render/overflow-text
feat:svg2-coords/viewport-overflow-clip
feat:svg2-coords/clippath-mask-no-viewport
feat:svg2-coords/objectboundingbox-units
feat:svg2-coords/objectboundingbox-zero-size
feat:svg2-coords/bbox-clipped-option

Matrix

Elements

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
el:clipPath partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement Never-rendered container; children limited to shapes, text, use, descriptive, animation and script; usable for referencing even under display:none; properties inherit from its own ancestors. donner/svg/SVGClipPathElement.cc:8-15 (ClipPathComponent, RenderingBehavior::Nonrenderable); donner/svg/parser/AttributeParser.cc:469-487 donner/svg/renderer/RenderingContext.cc:995-1017 (direct children only), :240-265 (needs a path or text, a known element type and a computed style) resvg masking/clipPath/* (51 of 54 compared on both backends; 2 Skip, 1 UndefinedBehavior at donner/svg/renderer/tests/resvg_test_suite.cc:669-691); donner/svg/tests/SVGClipPathElement_tests.cc; resvg painting/display/none-on-clipPath.svg medium M Element itself is handled; partial because of the row-level gaps below (referencing element's clip-rule leaks in, objectBoundingBox with child transforms, text child with clip-path, hit testing).
el:mask partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskElement Never-rendered container with a broad content model; rendered offscreen as a luminance or alpha mask; display, opacity and filter do not apply to the mask element; properties inherit from its own ancestors. donner/svg/SVGMaskElement.cc:14-22 (MaskComponent, ShadowOnlyChildren, no self or parent transform); donner/svg/parser/AttributeParser.cc:491-524 donner/svg/renderer/RenderingContext.cc:1285-1336 (resolveMask), :1492-1498 (offscreen shadow tree); donner/svg/renderer/RendererDriver.cc:3897-3965 (renderMask) resvg masking/mask/* (38 of 39 compared on both backends; recursive-on-child.svg UndefinedBehavior at donner/svg/renderer/tests/resvg_test_suite.cc:693-704); donner/svg/tests/SVGMaskElement_tests.cc medium M Partial because display/opacity/filter on the mask element take effect and mask content does not inherit from the mask's ancestors (see feature rows); otherwise matches the resvg references.

Attributes (SVG 2 CR attribute index)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
attr:clipPathUnits@clipPath conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-clippath-clippathunits Enumeration userSpaceOnUse | objectBoundingBox, lacuna userSpaceOnUse, animatable. donner/svg/parser/AttributeParser.cc:473-482 (exact, case-sensitive match; anything else warns and leaves the default) donner/svg/renderer/RenderingContext.cc:1276-1279; donner/svg/renderer/RendererDriver.cc:983-989 (bbox transform at draw time); donner/svg/renderer/AnimationAttributes.cc:883-885 (animation) AttributeParser_tests ClipPathUnitsUserSpaceOnUse, ClipPathUnitsObjectBoundingBox; SVGClipPathElement_tests InvalidClipPathUnits; resvg masking/clipPath/clipPathUnits=objectBoundingBox.svg; RendererAnimationPresentation_tests.cc:1448 (set on clipPathUnits) - - Surrounding whitespace is not trimmed (value compared verbatim), so ' objectBoundingBox ' falls back to the default; low risk, not counted as a gap.
val:clipPathUnits/userSpaceOnUse conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clippathunits-userspaceonuse Clip content is in the user coordinate system of the referencing element. donner/svg/parser/AttributeParser.cc:474-475 donner/svg/renderer/RenderingContext.cc:818-821, :1019-1024 (identity reference transform) resvg masking/clipPath/simple-case.svg, clip-path-with-transform.svg; SVGClipPathElement_tests RenderingDefaults - -
val:clipPathUnits/objectBoundingBox divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clippathunits-objectboundingbox Clip content coordinates are fractions of the referencing element's object bounding box (origin at its top left, unit = its size). donner/svg/parser/AttributeParser.cc:476-477 donner/svg/renderer/RendererDriver.cc:983-989 builds the bbox matrix; donner/svg/renderer/RendererTinySkia.cc:1099-1100 and donner/svg/renderer/RendererGeode.cc:2628 compose it as clipPathUnitsTransform * shape.parentFromEntity * deviceFromLocal (left-first) resvg clipPathUnits=objectBoundingBox.svg, transform-on-clipPath.svg (pass); no test combines objectBoundingBox with a transform on a child medium S By code reading: the bbox matrix is applied before the child's own transform, so a child transform="translate(.5 0)" in an objectBoundingBox clipPath moves by 0.5 user units instead of half the box width. A child scale is wrong too whenever the bounding box top-left is not (0,0): it commutes with the box scale but not with the box translation, so for box origin o, box size s and child scale k Donner computes k * (s * p + o) where the spec gives s * (k * p) + o, a difference of (k - 1) * o. Only an identity child transform is safe in general. The clipPath element's own transform is applied after the bbox matrix, which matches the resvg reference. Zero-area bbox: the effect is not ignored (see feat:svg2-coords/objectboundingbox-zero-size).
attr:maskUnits@mask conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-maskunits Enumeration, lacuna objectBoundingBox, selects the coordinate system for x/y/width/height; animatable. donner/svg/parser/AttributeParser.cc:498-507; default donner/svg/core/MaskUnits.h (Default = ObjectBoundingBox) donner/svg/renderer/RendererDriver.cc:3809-3811; donner/svg/renderer/AnimationAttributes.cc:874-876 AttributeParser_tests MaskUnitsAndInvalidValues; resvg masking/mask/maskUnits=*.svg (5 cases); RendererAnimationCoordinateContext_tests MaskMixedLengthsUseTheSelectedUnits - - Invalid value warns and keeps the default.
val:maskUnits/userSpaceOnUse conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-maskunits-userspaceonuse x/y/width/height are in the referencing element's user space; percentages resolve against the viewport. donner/svg/parser/AttributeParser.cc:499-500 donner/svg/renderer/RendererDriver.cc:3810-3811 (LayoutSystem().getViewBox(target)), :3826-3828 resvg maskUnits=userSpaceOnUse-with-rect.svg, -with-percent.svg, -with-width-only.svg, -without-rect.svg - -
val:maskUnits/objectBoundingBox conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-maskunits-objectboundingbox x/y/width/height are fractions or percentages of the referencing element's bounding box. donner/svg/parser/AttributeParser.cc:501-502 donner/svg/renderer/RendererDriver.cc:3809-3834 (unitless = fraction, percent via toPixels against the bbox, origin offset for positions) resvg maskUnits=objectBoundingBox-with-percent.svg, simple-case.svg; SVGMaskElement_tests RenderingObjectBoundingBox - - Lengths with absolute units keep their px value in this mode (donner/svg/renderer/RendererDriver.cc:3819-3821 comment); not specified by the TR.
attr:maskContentUnits@mask conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-maskcontentunits Enumeration, lacuna userSpaceOnUse, selects the coordinate system of the mask content; animatable. donner/svg/parser/AttributeParser.cc:508-517 donner/svg/renderer/RendererDriver.cc:3953-3957; donner/svg/renderer/RenderingContext.cc:1330-1331; donner/svg/renderer/AnimationAttributes.cc:878-881 AttributeParser_tests MaskUnitsAndInvalidValues; resvg maskContentUnits=objectBoundingBox.svg, nested-objectBoundingBox.svg; SVGMaskElement_tests RenderingMaskContentUnits - -
val:maskContentUnits/userSpaceOnUse conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-maskcontentunits-userspaceonuse Mask content uses the referencing element's user space. donner/svg/parser/AttributeParser.cc:509-510 donner/svg/renderer/RendererDriver.cc:3950-3951 (surfaceFromCanvas = worldFromEntity of the masked element) resvg masking/mask/simple-case.svg, on-group-with-transform.svg, transform-on-shape.svg - -
val:maskContentUnits/objectBoundingBox conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-maskcontentunits-objectboundingbox Mask content coordinates are fractions of the referencing element's bounding box. donner/svg/parser/AttributeParser.cc:511-512 donner/svg/renderer/RendererDriver.cc:3953-3957 (Scale(bbox size) * Translate(bbox origin)) resvg maskContentUnits=objectBoundingBox.svg, nested-objectBoundingBox.svg - - The bbox matrix is outermost here, so transforms on mask children are applied inside it (unlike the clipPath case).
attr:x@mask conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-x <length-percentage>; when unspecified while another of x/y/width/height is specified the effect is -10%; animatable. donner/svg/parser/AttributeParser.cc:190-210 (ParseXYWidthHeight -> ParseLengthAttribute :90-112: one length, unit optional, percent allowed, trailing data rejected with a warning) donner/svg/renderer/RendererDriver.cc:3813-3840 (defaults -10%, unit handling per maskUnits); mask region clip in donner/svg/renderer/RendererTinySkia.cc:2208-2215 (antialiased rect) and donner/svg/renderer/RendererGeode.cc:6626-6636, :6721-6726 AttributeParser_tests MaskUnitsAndInvalidValues (x/y/width/height values), AttributeParser_tests.cc:1988 (invalid values); resvg half-width-region-with-rotation.svg, maskUnits=userSpaceOnUse-with-width-only.svg; animation: RendererAnimationCoordinateContext_tests MaskMixedLengthsUseTheSelectedUnits - - No calc() or other CSS math in the attribute parser (shared length-attribute limitation, owned by transforms_coordinates.md).
attr:y@mask conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-y <length-percentage>; when unspecified while another of x/y/width/height is specified the effect is -10%; animatable. donner/svg/parser/AttributeParser.cc:190-210 (ParseXYWidthHeight -> ParseLengthAttribute :90-112: one length, unit optional, percent allowed, trailing data rejected with a warning) donner/svg/renderer/RendererDriver.cc:3813-3840 (defaults -10%, unit handling per maskUnits); mask region clip in donner/svg/renderer/RendererTinySkia.cc:2208-2215 (antialiased rect) and donner/svg/renderer/RendererGeode.cc:6626-6636, :6721-6726 AttributeParser_tests MaskUnitsAndInvalidValues (x/y/width/height values), AttributeParser_tests.cc:1988 (invalid values); resvg half-width-region-with-rotation.svg, maskUnits=userSpaceOnUse-with-width-only.svg; animation: RendererAnimationCoordinateContext_tests MaskMixedLengthsUseTheSelectedUnits - - No calc() or other CSS math in the attribute parser (shared length-attribute limitation, owned by transforms_coordinates.md).
attr:width@mask partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-width <length-percentage>; when unspecified while another of x/y/width/height is specified the effect is 120%; animatable. Zero or negative disables rendering of the masked element. donner/svg/parser/AttributeParser.cc:190-210 (ParseXYWidthHeight -> ParseLengthAttribute :90-112: one length, unit optional, percent allowed, trailing data rejected with a warning) donner/svg/renderer/RendererDriver.cc:3813-3840 (defaults 120%, unit handling per maskUnits); mask region clip in donner/svg/renderer/RendererTinySkia.cc:2208-2215 (antialiased rect) and donner/svg/renderer/RendererGeode.cc:6626-6636, :6721-6726 AttributeParser_tests MaskUnitsAndInvalidValues (x/y/width/height values), AttributeParser_tests.cc:1988 (invalid values); resvg half-width-region-with-rotation.svg, maskUnits=userSpaceOnUse-with-width-only.svg; animation: RendererAnimationCoordinateContext_tests MaskMixedLengthsUseTheSelectedUnits; no test for zero or negative low S No calc() or other CSS math in the attribute parser (shared length-attribute limitation, owned by transforms_coordinates.md). A zero or negative value must disable rendering of the masked element: zero yields an empty region (element hidden, by code reading); negative is not rejected at parse time and reaches Box2d::FromXYWH unchecked (donner/svg/renderer/RendererDriver.cc:3836-3840), result unverified on both backends.
attr:height@mask partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-height <length-percentage>; when unspecified while another of x/y/width/height is specified the effect is 120%; animatable. Zero or negative disables rendering of the masked element. donner/svg/parser/AttributeParser.cc:190-210 (ParseXYWidthHeight -> ParseLengthAttribute :90-112: one length, unit optional, percent allowed, trailing data rejected with a warning) donner/svg/renderer/RendererDriver.cc:3813-3840 (defaults 120%, unit handling per maskUnits); mask region clip in donner/svg/renderer/RendererTinySkia.cc:2208-2215 (antialiased rect) and donner/svg/renderer/RendererGeode.cc:6626-6636, :6721-6726 AttributeParser_tests MaskUnitsAndInvalidValues (x/y/width/height values), AttributeParser_tests.cc:1988 (invalid values); resvg half-width-region-with-rotation.svg, maskUnits=userSpaceOnUse-with-width-only.svg; animation: RendererAnimationCoordinateContext_tests MaskMixedLengthsUseTheSelectedUnits; no test for zero or negative low S No calc() or other CSS math in the attribute parser (shared length-attribute limitation, owned by transforms_coordinates.md). A zero or negative value must disable rendering of the masked element: zero yields an empty region (element hidden, by code reading); negative is not rejected at parse time and reaches Box2d::FromXYWH unchecked (donner/svg/renderer/RendererDriver.cc:3836-3840), result unverified on both backends.

clip-path property (CSS Masking 5.1, CSS Shapes 3.1)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:clip-path partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-path Value <clip-source> | [ <basic-shape> || <geometry-box> ] | none; initial none; not inherited; applies in SVG to containers (except defs), graphics elements and use; computed value as specified with absolute URLs; presentation attribute. donner/svg/properties/PropertyRegistry.cc:1366-1389 (ParseClipPathValue), registered :3122-3130, presentation attribute :2442; donner/svg/properties/PropertyRegistry.h:282-283 (PropertyCascade::None, initial none) donner/svg/renderer/RenderingContext.cc:518-520, :1235-1265 (instantiateClipPath); donner/svg/renderer/RendererDriver.cc:972-1050 (toResolvedClip), :3373-3378 (pushClip) PropertyRegistry_tests CircleClipStyleAndPresentationGrammarStayDistinct, InvalidClipDeclarationsPreserveTheEarlierValue; CircleClipPath_tests NoneClearsAnEarlierCircleOrReference; resvg masking/clipPath/* medium M Works as attribute and declaration. Missing grammar alternatives: geometry-box alone, rect(), xywh(), shape(), polygon round, closest-corner/farthest-corner. No applies to filter: the property is honored on any rendered instance, including defs content reached through use.
val:clip-path/none conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip-path No clipping path is created. donner/svg/properties/PropertyRegistry.cc:1370-1373 donner/svg/renderer/RenderingContext.cc:518 (no stored value, no clip) CircleClipPath_tests NoneClearsAnEarlierCircleOrReference; resvg masking/clipPath/none.svg - -
val:clip-path/<clip-source> url() conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-clip-source A url referencing a clipPath element; quoted and unquoted url forms are both <url>. donner/svg/properties/PropertyRegistry.cc:1379-1385 with ParseUrlComponent :932-958 (url token and url("string") function); trailing tokens make the declaration invalid donner/svg/renderer/RenderingContext.cc:1267-1283 (resolve, must carry ClipPathComponent) resvg masking/clipPath/simple-case.svg; RenderingContext_tests GradientAndClipPath - - Only same-document fragment references resolve (external documents are outside this ledger).
val:clip-path/<basic-shape> \|\| <geometry-box> conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip-path A basic shape with an optional reference box in either order; default reference box border-box. donner/svg/properties/ClipPath.cc:516-541 (one function plus at most one box keyword, any order; default Box::Stroke) donner/svg/components/shape/ShapeSystem.cc:1196-1207 (getCircleReferenceBox) PolygonClipPath_tests StrokeAndViewReferenceBoxes; InsetClipPath_tests SvgReferenceBoxesAndAliases; CircleClipPath_tests StrokeAndViewReferenceBoxes - -
val:clip-path/<geometry-box> alone missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-geometry-box A box keyword by itself clips to the edges of that box. donner/svg/properties/ClipPath.cc:537-539 (returns InvalidShape when no function is present) none (declaration dropped) none medium S clip-path: view-box or fill-box is ignored.
val:clip-path/inset() partial https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-inset inset(<length-percentage>{1,4} [round <'border-radius'>]?); over-large opposing insets are reduced proportionally. donner/svg/properties/ClipPath.cc:350-414 (1-4 offsets with margin-style expansion, optional round with x / y radii lists, radii non-negative) donner/svg/components/shape/ShapeSystem.cc:1143-1175 (insetClipPath; zero-area result when insets cross), :583-667 (radius clamping) InsetClipPath_tests (21 cases incl. OneToFourOffsetsExpandLikeMargins, OversubscribedAndZeroAreaInsetsReplaceEarlierClip, PercentageRadiiUseSelectedFillAndStrokeBoxes); PropertyRegistry_tests InsetRejectsUnsupportedContextualUnitsWithoutReplacingClip low S ex, ch, vw, vh, vmin and vmax lengths are rejected inside inset() only (donner/svg/properties/ClipPath.cc:334-348), which drops a valid declaration; a test pins this.
val:clip-path/xywh() missing https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-xywh xywh(<length-percentage>{2} <length-percentage [0,inf]>{2} [round <'border-radius'>]?). donner/svg/properties/ClipPath.cc:449-453 (IsSupportedShape lists circle, ellipse, polygon, inset, path only) none none low S
val:clip-path/rect() missing https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-rect rect([<length-percentage> | auto]{4} [round <'border-radius'>]?) with right/bottom floored by left/top. donner/svg/properties/ClipPath.cc:449-453 none none low S Distinct from the legacy clip rect().
val:clip-path/circle() partial https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-circle circle(<radial-size>? [at <position>]?); radial-size is closest-corner | closest-side | farthest-corner | farthest-side | a non-negative length; two length-percentages are invalid; position defaults to center. donner/svg/properties/ClipPath.cc:163-202 (closest-side, farthest-side, non-negative length or percentage; at with 1, 2, 3 or 4 component positions) donner/svg/components/shape/ShapeSystem.cc:536-546, :1066-1091 (percent radius against the normalized diagonal; zero radius yields an empty clip) CircleClipPath_tests (33 cases incl. PercentRadiusUsesNormalizedDiagonal, EdgeOffsetsAndFarthestSideResolveInReferenceBox, ZeroRadiusSuppressesWholeGroup); resvg circle-shorthand.svg (compared), circle-shorthand-with-stroke-box.svg and -with-view-box.svg (compared against Donner goldens; harness background mismatch) low S closest-corner and farthest-corner are rejected. A 3-component position (for example left 10px top) is accepted although <position> no longer includes it. Percentage radius is accepted (older <shape-radius> behavior; the 2025 grammar only lists <length> for a single value: spec-ambiguity). The keyword list was verified against css-images-3.
val:clip-path/ellipse() partial https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-ellipse ellipse(<radial-size>? [at <position>]?); one extent keyword applies to both radii, or two length-percentages. donner/svg/properties/ClipPath.cc:204-241 (one keyword for both axes, or two values each a length-percentage or closest-side/farthest-side; a single length is rejected) donner/svg/components/shape/ShapeSystem.cc:548-557, :1093-1123 CircleClipPath_tests DefaultRadiiResolveIndependently, SingleExtentKeywordAppliesToBothRadii, PercentRadiiUseTheirOwnAxis; PropertyRegistry_tests EllipseClipParsingAndInvalidDeclarationFallback low S closest-corner and farthest-corner rejected; mixed keyword plus length (ellipse(closest-side 10px)) is accepted, which the current grammar does not allow.
val:clip-path/polygon() partial https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-polygon polygon(<'fill-rule'>? [round <length>]?, [<length-percentage> <length-percentage>]#); closed implicitly. donner/svg/properties/ClipPath.cc:291-332 (optional nonzero|evenodd then comma, comma-separated pairs, at most 16384 vertices) donner/svg/components/shape/ShapeSystem.cc:702-727, :1125-1141 (fewer than 3 vertices gives an empty clip) PolygonClipPath_tests (9 cases); PropertyRegistry_tests PolygonClipParsesRuleCoordinatesAndBox; RendererDriver_tests CssPolygonWindingIsIndependentOfElementClipRule low S round <length> vertex rounding is not parsed, so such declarations are dropped.
val:clip-path/path() conformant https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-path path(<'fill-rule'>?, <string>); invalid or empty path data invalidates the whole value; open subpaths are closed implicitly. donner/svg/properties/ClipPath.cc:416-447 (optional rule plus comma, one string up to 64 KiB, any path parse error or empty path rejects) donner/svg/components/shape/ShapeSystem.cc:1176-1194 (pathClipPath, BuildClosedPathClip) PathClipPath_tests (7 cases incl. CurvesArcsRelativeCommandsAndImplicitClosure, InvalidDataPreservesEarlierDeclarationAndValidDegeneratesClipEmpty); PropertyRegistry_tests PathClipAcceptsQuotedDataAndFillRule, InvalidPathClipKeepsEarlierDeclaration - - Path coordinates are in user units offset by the reference box origin and are not scaled by it.
val:clip-path/shape() missing https://www.w3.org/TR/2025/CRD-css-shapes-1-20250612/#funcdef-basic-shape-shape shape(<'fill-rule'>? from <position>, <shape-command>#) with move, line, hline, vline, curve, smooth, arc and close commands. donner/svg/properties/ClipPath.cc:449-453 none none low M
val:clip-path/fill-box conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clip-path-fill-box Reference box is the object bounding box. donner/svg/properties/ClipPath.cc:30 donner/svg/components/shape/ShapeSystem.cc:1201-1202 CircleClipPath_tests ExplicitFillBoxExcludesStroke, FillBoxAndPositionUseUnclippedGeometry - -
val:clip-path/stroke-box divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clip-path-stroke-box Reference box is the stroke bounding box, computed by Appendix B (bbox inflated by half the stroke width times a miter or square-cap factor). donner/svg/properties/ClipPath.cc:34 donner/svg/components/shape/ShapeSystem.cc:1203-1204 (getTransformedShapeBounds with stroke = true: bounds of the actual stroked outline) CircleClipPath_tests StrokeBoxUsesStrokeShapeInsteadOfMiterEnvelope, DefaultAndStrokeBoxIncludeStrokeGeometry (pin the tight box) low S Donner deliberately uses the tight stroke shape; SVG 2 coords.html defines the stroke bounding box from the stroke shape, CSS Masking Appendix B from an inflation formula: spec-ambiguity between the two.
val:clip-path/view-box conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clip-path-view-box Reference box is the nearest SVG viewport, positioned and sized by its viewBox when present. donner/svg/properties/ClipPath.cc:38-40 donner/svg/components/shape/ShapeSystem.cc:1205 (LayoutSystem().getViewBox) CircleClipPath_tests ViewBoxUsesNearestSvgViewport; PolygonClipPath_tests StrokeAndViewReferenceBoxes - -
val:clip-path/border-box conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip-path For SVG elements without a CSS box, border-box and margin-box map to stroke-box; border-box is the default reference box. donner/svg/properties/ClipPath.cc:34-36, :522 donner/svg/components/shape/ShapeSystem.cc:1203-1204 InsetClipPath_tests SvgReferenceBoxesAndAliases - - Inherits the stroke-box divergence above.
val:clip-path/margin-box conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip-path margin-box (from <shape-box>) maps to stroke-box for SVG elements. donner/svg/properties/ClipPath.cc:35 donner/svg/components/shape/ShapeSystem.cc:1203-1204 InsetClipPath_tests SvgReferenceBoxesAndAliases - -
val:clip-path/padding-box conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip-path padding-box maps to fill-box for SVG elements. donner/svg/properties/ClipPath.cc:31 donner/svg/components/shape/ShapeSystem.cc:1201-1202 InsetClipPath_tests SvgReferenceBoxesAndAliases - -
val:clip-path/content-box conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip-path content-box maps to fill-box for SVG elements. donner/svg/properties/ClipPath.cc:30 donner/svg/components/shape/ShapeSystem.cc:1201-1202 InsetClipPath_tests SvgReferenceBoxesAndAliases - -

clip-rule property (CSS Masking 6.2)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:clip-rule divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-rule nonzero | evenodd, initial nonzero, inherited, presentation attribute; applies only to graphics elements inside a clipPath. A clip-rule on the referencing element must not change the clip. donner/svg/properties/PropertyRegistry.cc:1101-1119, registered :3131-3139, presentation attribute :2443; donner/svg/properties/PropertyRegistry.h:287-288 (Inherit, initial nonzero) donner/svg/renderer/RenderingContext.cc:958-959 (child's computed clip-rule stored per shape); donner/svg/renderer/RendererDriver.cc:1034-1037 (also ORs in the referencing element's clip-rule) resvg masking/clip-rule/clip-rule=evenodd.svg, masking/clipPath/clip-rule=evenodd.svg, mixed-clip-rule.svg, clip-rule-from-parent-node.svg; SVGClipPathElement_tests ClipRuleNonzero, ClipRuleEvenodd, MultiplePathsWithDifferentClipRulesSideBySide. No test for clip-rule on the referencing element. medium S By code reading: usesEvenOdd = path.clipRule == EvenOdd \|\| (!hasOwnClipRule && style.clipRule == EvenOdd) where style is the clipped element's style, so <rect clip-path="url(#c)" clip-rule="evenodd"> (or an inherited evenodd on it) switches every nonzero child of #c to evenodd. This is exactly the second example in section 6.2, which must stay nonzero.
val:clip-rule/nonzero conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clip-rule-nonzero Non-zero winding rule for the clip child. donner/svg/properties/PropertyRegistry.cc:1107-1108 donner/svg/renderer/RendererDriver.cc:1037; donner/svg/renderer/RendererTinySkia.cc:1055-1110 (ClipMaskBuilder fill rule) SVGClipPathElement_tests ClipRuleNonzero; resvg mixed-clip-rule.svg - - Subject to the override described in prop:clip-rule.
val:clip-rule/evenodd conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-clip-rule-evenodd Even-odd rule for the clip child. donner/svg/properties/PropertyRegistry.cc:1109-1110 donner/svg/renderer/RendererDriver.cc:1034-1037 SVGClipPathElement_tests ClipRuleEvenodd; resvg masking/clip-rule/clip-rule=evenodd.svg, overlapped-shapes-with-evenodd.svg - -

mask shorthand and positioned-mask longhands (CSS Masking 7)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:mask partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask Shorthand <mask-layer>#; sets mask-image, -position, -size, -repeat, -origin, -clip, -composite, -mode and resets mask-border; not inherited; presentation attribute. donner/svg/properties/PropertyRegistry.cc:3140-3148 (stored as one Reference via ParseReference :1343-1364), presentation attribute :2474; donner/svg/properties/PropertyRegistry.h:292-293 donner/svg/renderer/RenderingContext.cc:522-528, :1933-1934; donner/svg/renderer/RendererDriver.cc:3364-3366 resvg masking/mask/* (via the presentation attribute); RendererDriver_tests EmitsMaskSequenceForMaskedElement; no unit test of the mask grammar (a search for 'mask' in donner/svg/properties/tests finds only mask-type) medium L Only an unquoted url(#id) works.
val:mask/none divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-mask-reference none is a valid layer and the initial value; as a declaration it must override lower-priority mask values. donner/svg/properties/PropertyRegistry.cc:1343-1364 (ParseReference: first component must be a url token, otherwise Invalid url reference) declaration dropped (donner/svg/properties/PropertyParsing.h:113-119) resvg masking/mask/none.svg passes only because nothing else sets mask medium S mask: none cannot cancel a stylesheet or attribute mask: url(#m).
val:mask/<mask-source> url() partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-mask-source A <url> to a mask element; both url(#m) and url("#m") are <url>. donner/svg/properties/PropertyRegistry.cc:1352-1357 (accepts only css::Token::Url; the tokenizer emits a function token for a quoted url, donner/css/parser/details/Tokenizer.cc:501-521) donner/svg/renderer/RenderingContext.cc:1285-1336 resvg masking/mask/simple-case.svg (unquoted); none for the quoted form medium S mask: url("#m") and url('#m') are rejected, although clip-path, fill and stroke accept them through ParseUrlComponent. Trailing tokens after the url are silently ignored instead of invalidating or being applied.
val:mask/<mask-layer> full grammar missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-mask-layer Each layer may combine a reference, position [/ size], repeat-style, one or two geometry-box values or no-clip, a compositing operator and a masking mode, comma separated. donner/svg/properties/PropertyRegistry.cc:1352-1357 (nothing beyond the first url is read) none none medium L mask: url(#m) alpha renders with the mask element's own mask-type.
val:mask/resets mask-border not-applicable https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask The shorthand resets all mask-border longhands to their initial values. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none - - No mask-border property exists, so there is nothing to reset; becomes applicable with prop:mask-border.
prop:mask-image missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-image <mask-reference># (none | <image> | <mask-source>), initial none, not inherited; a non-none value creates a stacking context. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none medium XL mask-image: url(#m) in a stylesheet has no effect; only the mask name is registered.
val:mask-image/none missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-image Counts as a transparent black image layer. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-image/<image> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-mask-reference Any CSS <image> (url to a raster or SVG image, gradients) is a mask layer, alpha mode by default. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none medium XL Needs CSS image and gradient value support, which Donner's CSS engine lacks.
val:mask-image/<mask-source> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#typedef-mask-source A url to a mask element used as a layer. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none medium M Reachable today only through the mask name.
val:mask-image/comma-separated list missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#layering Multiple layers, one per comma-separated value. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low L
prop:mask-mode missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-mode <masking-mode># = alpha | luminance | match-source, initial match-source. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M The effective mode always comes from the mask element's mask-type (donner/svg/renderer/RendererDriver.cc:3844-3853), which equals match-source for mask-element layers.
val:mask-mode/alpha missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-mode-alpha Use the layer's alpha as mask values, overriding mask-type. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-mode/luminance missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-mode-luminance Use the layer's luminance, overriding mask-type. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-mode/match-source partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-mode-match-source For a mask element use its mask-type; for an <image> use alpha. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 donner/svg/renderer/RendererDriver.cc:3844-3853 (mask-type of the referenced mask is always used) resvg masking/mask/mask-type=alpha.svg, mask-type=luminance.svg low S The keyword is not parsed, but the initial-value behavior for mask-element references is what Donner does.
prop:mask-repeat missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-repeat <repeat-style>#, initial repeat; no effect for mask-element layers. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M No visible effect while only mask-element layers exist.
val:mask-repeat/repeat-x missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-repeat-style <repeat-style> keyword per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-repeat/repeat-y missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-repeat-style <repeat-style> keyword per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-repeat/repeat missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-repeat-style <repeat-style> keyword per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-repeat/space missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-repeat-style <repeat-style> keyword per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-repeat/round missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-repeat-style <repeat-style> keyword per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-repeat/no-repeat missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-repeat-style <repeat-style> keyword per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-position missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-position <position>#, initial 0% 0%; no effect for mask-element layers. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M
val:mask-position/<position> missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-bg-position Background-position style value (keywords, lengths, percentages, edge offsets). absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-clip missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-clip [<geometry-box> | no-clip]#, initial border-box; no effect for mask-element layers. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M
val:mask-clip/content-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-content-box Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-clip/padding-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-padding-box Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-clip/border-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-border-box Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-clip/fill-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-fill-box Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-clip/stroke-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-stroke-box Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-clip/view-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-view-box Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-clip/no-clip missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-clip-no-clip Mask painting area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-origin missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-origin <geometry-box>#, initial border-box; no effect for mask-element layers. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M
val:mask-origin/content-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-origin-content-box Mask positioning area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-origin/padding-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-origin-padding-box Mask positioning area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-origin/border-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-origin-border-box Mask positioning area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-origin/fill-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-origin-fill-box Mask positioning area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-origin/stroke-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-origin-stroke-box Mask positioning area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-origin/view-box missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-origin-view-box Mask positioning area keyword. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-size missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-size <bg-size>#, initial auto; no effect for mask-element layers. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M
val:mask-size/auto missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-bg-size <bg-size> alternative per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-size/cover missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-bg-size <bg-size> alternative per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-size/contain missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-bg-size <bg-size> alternative per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-size/<length-percentage>{1,2} missing https://www.w3.org/TR/2024/CRD-css-backgrounds-3-20240311/#typedef-bg-size <bg-size> alternative per CSS Backgrounds 3. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-composite missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-composite <compositing-operator># = add | subtract | intersect | exclude, initial add; ignored for the bottom layer. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M Meaningful only with multiple layers.
val:mask-composite/add missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-composite-add Porter-Duff operator between this layer and the layers below. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-composite/subtract missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-composite-subtract Porter-Duff operator between this layer and the layers below. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-composite/intersect missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-composite-intersect Porter-Duff operator between this layer and the layers below. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-composite/exclude missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-composite-exclude Porter-Duff operator between this layer and the layers below. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S

mask-type property (CSS Masking 9.2)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:mask-type conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-type luminance | alpha, initial luminance, applies to mask elements, not inherited, presentation attribute. donner/svg/properties/PropertyRegistry.cc:1121-1136, registered :3149-3157, presentation attribute :2475; donner/svg/properties/PropertyRegistry.h:297-298 (non-inherited, initial luminance) donner/svg/renderer/RendererDriver.cc:3844-3853 (read from the referenced mask's computed style) -> pushMask; donner/svg/renderer/RendererTinySkia.cc:53-61; donner/gpu/shader/programs/ImageBlitSource.h:526-545 PropertyRegistry_tests MaskTypeGrammarAndCascade; RendererDriver_tests EmitsMaskTypeFromReferencedMaskStyle; resvg mask-type=alpha.svg, mask-type=luminance.svg, mask-type=invalid.svg, mask-type-in-style.svg, mask-on-self-with-mixed-mask-type.svg - -
val:mask-type/luminance conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-type-luminance Use luminance values of the mask content. donner/svg/properties/PropertyRegistry.cc:1124-1125 donner/svg/renderer/RendererTinySkia.cc:58-60; ImageBlitSource.h:533-544 resvg masking/mask/mask-type=luminance.svg, simple-case.svg - -
val:mask-type/alpha conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-type-alpha Use alpha values of the mask content. donner/svg/properties/PropertyRegistry.cc:1126-1127 donner/svg/renderer/RendererTinySkia.cc:58-60; donner/svg/renderer/geode/GeoEncoder.cc:3332 resvg masking/mask/mask-type=alpha.svg, mask-on-self-with-mask-type=alpha.svg - -

mask-border properties (CSS Masking 8)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:mask-border missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border Shorthand: source || slice [/ width? [/ outset]?]? || repeat || mode. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M Low value for SVG content: SVG elements have no CSS border box.
prop:mask-border-source missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border-source none | <image>, initial none; non-none creates a stacking context. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low M
val:mask-border-source/none missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-source No border mask. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-source/<image> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-source CSS image sliced into nine regions and used as a mask. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low L
prop:mask-border-mode missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border-mode luminance | alpha, initial alpha; independent of mask-mode and mask-type. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-mode/luminance missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-border-mode-luminance Luminance of the border image. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-mode/alpha missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-border-mode-alpha Alpha of the border image. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-border-slice missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border-slice <number-percentage>{1,4} fill?, initial 0. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-slice/<number-percentage>{1,4} missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-slice Inward offsets from the image edges. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-slice/fill missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#valdef-mask-border-slice-fill Keep the middle region instead of treating it as opaque. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-border-width missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border-width [<length-percentage> | <number> | auto]{1,4}, initial auto. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-width/<length-percentage> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-width Width as a length or percentage of the border image area. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-width/<number> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-width Multiple of the border width (0 for SVG elements without a box). absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-width/auto missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-width Intrinsic slice size. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-border-outset missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border-outset [<length> | <number>]{1,4}, initial 0, non-negative. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-outset/<length> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-outset Outset length. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-outset/<number> missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-outset Outset as a multiple of the border width. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
prop:mask-border-repeat missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-border-repeat [stretch | repeat | round | space]{1,2}, initial stretch. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-repeat/stretch missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-repeat Stretch edge and middle tiles. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-repeat/repeat missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-repeat Tile. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-repeat/round missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-repeat Tile with rescale to a whole number. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S
val:mask-border-repeat/space missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-mask-border-repeat Tile with spacing. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none low S

Legacy clip property (CSS Masking Appendix A)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:clip missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#clip-property rect() | auto, initial auto; deprecated but UAs must support it; in SVG applies to viewport-establishing elements, pattern and mask; presentation attribute. absent: a search for '"clip"' in donner/svg/properties/PropertyRegistry.cc returns nothing (not in kProperties, not in kValidPresentationAttributeEntries :2426-2500); a clip declaration takes the unknown-property path :3461 none (never parsed) resvg masking/clip/simple-case.svg rendered without comparison (DeprecatedInSVG2 at donner/svg/renderer/tests/resvg_test_suite.cc:651-661) low S The SVG 2 CR still lists clip in the stacking-context table (render.html 3.4.1) and CSS Masking says UAs must support it, so the deprecated in SVG 2 label on the resvg case understates the requirement.
val:clip/auto missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#propdef-clip No clipping from this property. absent: a search for '"clip"' in donner/svg/properties/PropertyRegistry.cc returns nothing (not in kProperties, not in kValidPresentationAttributeEntries :2426-2500); a clip declaration takes the unknown-property path :3461 none (never parsed) none low S Rendering already equals auto everywhere; only the parse is missing.
val:clip/rect() missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#funcdef-clip-rect rect(<top>, <right>, <bottom>, <left>) with lengths or auto; comma separation required, space separation optional but not mixed. absent: a search for '"clip"' in donner/svg/properties/PropertyRegistry.cc returns nothing (not in kProperties, not in kValidPresentationAttributeEntries :2426-2500); a clip declaration takes the unknown-property path :3461 none (never parsed) resvg masking/clip/simple-case.svg (not compared) low S

Features: clipping (CSS Masking 5, 6)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-masking-1/clippath-content-model conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-clippath Only shapes, text, use, descriptive, animation and script elements are valid children. donner/svg/renderer/RenderingContext.cc:240-265 (PrepareClipGeometry requires a computed path or text root) donner/svg/renderer/RenderingContext.cc:995-1008 (ForAllChildren: direct children only) resvg g-is-not-a-valid-child.svg, image-is-not-a-valid-child.svg, switch-is-not-a-valid-child.svg, line-is-not-a-valid-child.svg, multiple-children.svg - -
feat:css-masking-1/clippath-disallowed-children-ignored conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-clippath Disallowed children (g, image, switch, nested containers) contribute nothing; other children still clip. donner/svg/renderer/RenderingContext.cc:250-252 donner/svg/renderer/RenderingContext.cc:981-993 (a failing child is erased, siblings kept) resvg g-is-not-a-valid-child.svg, image-is-not-a-valid-child.svg, switch-is-not-a-valid-child.svg, invalid-clip-path-on-child.svg - - The TR does not state the outcome for other invalid children; Donner follows the resvg references (child ignored).
feat:css-masking-1/clippath-use-direct-reference partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement A use child must directly reference a path, text or basic shape; it then contributes that geometry. donner/svg/renderer/RenderingContext.cc:962-979 (use child: its shadow root is appended) donner/svg/renderer/RenderingContext.cc:976 (appendClipPathFromEntity(shadowRoot, enforceVisibility = false)) SVGClipPathElement_tests RenderingUseChild, RenderingUseChildDisplayNone; RenderingContext_tests UseInsideDefinitionClipPathStillClipsPresentedShape; resvg with-use-child.svg low S By code reading: visibility and display are checked on the use element but not on the referenced element instance (enforceVisibility is false), so <use href="#r"/> with #r carrying visibility=hidden or display=none still contributes. No test covers it.
feat:css-masking-1/clippath-use-indirect-reference spec-ambiguity https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement An indirect reference (use to g, symbol or another use) is an error and the clipPath must be ignored; the TR carries an open issue noting no browser does this. donner/svg/renderer/RenderingContext.cc:962-979 donner/svg/renderer/RenderingContext.cc:240-252 (a shadow root without path geometry yields nothing; only that child is dropped) resvg with-invalid-child-via-use.svg, symbol-via-use-is-not-a-valid-child.svg low S Donner ignores the offending child, not the whole clipPath, matching resvg. Spec issue: csswg-drafts #17.
feat:css-masking-1/clippath-text-child conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement text children contribute their glyph outlines. donner/svg/renderer/RenderingContext.cc:244-250 (text root detection) donner/svg/renderer/RenderingContext.cc:919-929 (computedGlyphPaths appended per glyph) RendererDriver_tests DrawConvertsTextClipChildrenToPlacedGlyphOutlines; resvg clipping-with-text.svg, clipping-with-complex-text-1.svg, -2.svg, clipping-with-complex-text-and-clip-rule.svg, clip-path-with-transform-on-text.svg - - Requires a text-enabled build (DONNER_TEXT_ENABLED); without it text children contribute nothing.
feat:css-masking-1/clippath-raw-geometry conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement Only raw geometry counts: fill, stroke, stroke-width, opacity, filter, mask and markers of a child have no effect; the result is a 1-bit silhouette. donner/svg/renderer/RenderingContext.cc:912-918 (only the path spline is collected) donner/svg/renderer/RendererTinySkia.cc:1055-1110 (ClipMaskBuilder); donner/svg/renderer/RendererGeode.cc:2617-2632 (fillClipLayerMask) resvg fill-has-no-effect.svg, stroke-has-no-effect.svg, opacity-has-no-effect.svg, filter-has-no-effect.svg, mask-has-no-effect.svg, with-marker-on-clip.svg - - Edges are antialiased, which the TR permits.
feat:css-masking-1/clippath-child-display-visibility conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement A child made invisible by display or visibility does not contribute. donner/svg/renderer/RenderingContext.cc:260-263 donner/svg/renderer/RenderingContext.cc:887-890, :963-969 resvg invisible-child-1.svg, invisible-child-2.svg; SVGClipPathElement_tests RenderingUseChildDisplayNone - - SVG 2 render.html 3.2.3 says a visibility:hidden element still contributes to clipping paths, which contradicts this sentence of CSS Masking; see feat:svg2-render/visibility-hidden-in-clip.
feat:css-masking-1/clippath-union-of-children conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement Silhouettes of all children are OR'ed. donner/svg/renderer/RenderingContext.cc:1006-1008 donner/svg/renderer/RendererTinySkia.cc:1055-1160 (shapes at one layer are unioned) resvg multiple-children.svg; SVGClipPathElement_tests RenderingMultipleChildrenWithTransforms - -
feat:css-masking-1/clip-path-on-clippath-child partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement A clip-path on a child clips that child before its silhouette is OR'ed with its siblings. donner/svg/renderer/RenderingContext.cc:855-885 (collectNestedClipForEntity, layer + 1) donner/svg/renderer/RenderingContext.cc:945-949 (a text child with clip-path invalidates and drops that child) resvg clip-path-on-child.svg, clip-path-on-children.svg, clip-path-on-child-with-transform.svg; CircleClipPath_tests NestedClipChildIntersectsItsGeometry; RendererDriver_tests DrawRejectsNestedClipOnTextChildWithoutLeakingLayerRecords (pins the drop) low M Shape children work; a text child with its own clip-path contributes nothing instead of a clipped silhouette.
feat:css-masking-1/clip-path-on-clippath-element partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement A clip-path on the clipPath element intersects the referenced clip with the clipPath's content. donner/svg/renderer/RenderingContext.cc:1001-1016 (group marker record) donner/svg/renderer/RendererTinySkia.cc:1055-1160; donner/svg/renderer/RendererGeode.cc:2617-2632 resvg clip-path-on-self.svg, clip-path-on-self-2.svg, nested-clip-path.svg, invalid-clip-path-on-self.svg; RendererPublicApi_tests.cc:7451-7521 (nested objectBoundingBox inner clip) low S By code reading: when the clip-path on the clipPath element references an objectBoundingBox clipPath while the outer one is userSpaceOnUse, nestedClipReferenceTransform returns identity (donner/svg/renderer/RenderingContext.cc:823-826, Container boxes are unmodeled here), so the inner clip stays in 0..1 units. This is a real gap, not only a test gap.
feat:css-masking-1/clippath-no-ancestor-clip-inheritance conformant-untested https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement The clipPath and its children do not pick up clipping paths from the clipPath's ancestors. donner/svg/properties/PropertyRegistry.h:282 (clip-path not inherited) donner/svg/renderer/RenderingContext.cc:995-1017 (only the clipPath's own and its children's clip-path are read) none - - No test places a clip-path on an ancestor of a clipPath; see Tests to create.
feat:css-masking-1/clippath-transform conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-clippath transform on clipPath applies to its content. donner/svg/SVGClipPathElement.cc:12-14 (inheritsParentTransform = false, own transform kept) donner/svg/renderer/RenderingContext.cc:955-957 (child worldFromEntity includes the clipPath transform) resvg transform-on-clipPath.svg, invalid-transform-on-clipPath.svg, structure/transform-origin/on-clippath.svg, on-clippath-objectBoundingBox.svg; SVGClipPathElement_tests RenderingTransform - - A non-finite or singular chain drops the affected geometry (donner/svg/renderer/RenderingContext.cc:908-911).
feat:css-masking-1/clippath-never-rendered-display-none conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement clipPath is never rendered directly and stays referenceable when it or an ancestor has display:none. donner/svg/SVGClipPathElement.cc:11-13 donner/svg/renderer/RenderingContext.cc:995-1017 (no display check on the clipPath itself) resvg painting/display/none-on-clipPath.svg, structure/systemLanguage/on-clipPath.svg - -
feat:css-masking-1/clippath-property-inheritance conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement Properties inherit into clipPath content from the clipPath's ancestors, not from the referencing element. light-tree style cascade (donner/svg/components/style/StyleSystem.cc:846-869) donner/svg/renderer/RenderingContext.cc:958-959 resvg clip-rule-from-parent-node.svg - - The one exception is the clip-rule leak recorded under prop:clip-rule.
feat:css-masking-1/clip-pointer-events missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#clipping-paths Pointer events must not be dispatched on clipped-out regions of an element. n/a donner/svg/renderer/RenderingContext.cc:1760-1800 (prepareHitGeometry / hitTestEntity test fill, stroke and bounds only; a search for 'clip' in lines 1500-1870 finds nothing) none medium M findIntersecting returns elements at points removed by clip-path, by a viewport overflow clip or by a mask region.
feat:css-masking-1/clip-does-not-change-geometry conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#clipping-paths Clipping does not change an element's geometry or bounding box. n/a donner/svg/components/shape/ShapeSystem.cc:1053-1058 (bounds from geometry only) CircleClipPath_tests FillBoxAndPositionUseUnclippedGeometry; resvg painting/*/bBox-impact cases - -
feat:css-masking-1/empty-clip-path conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#ClipPathElement An empty clipping path clips away the whole element. donner/svg/renderer/RenderingContext.cc:1009-1012 donner/svg/renderer/RendererDriver.cc:1045-1050 (empty path forces a hide-everything clip) SVGClipPathElement_tests RenderingEmptyClipPath; resvg no-children.svg, malformed-path-child.svg - -
feat:css-masking-1/invalid-clip-reference conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-path A url that does not resolve to a clipPath element applies no clipping. donner/svg/renderer/RenderingContext.cc:1267-1283 donner/svg/renderer/RenderingContext.cc:1239-1241 (returns before any clip state is created) resvg invalid-FuncIRI.svg - -
feat:css-masking-1/clip-rule-referencing-element-ignored divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-rule clip-rule on the element that references the clipPath has no effect on the clip. donner/svg/properties/PropertyRegistry.cc:1101-1119 donner/svg/renderer/RendererDriver.cc:1034-1037 none medium S See prop:clip-rule. Test to add: section 6.2 example 2.
feat:css-masking-1/clip-rule-not-for-basic-shapes conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-rule clip-rule does not apply to <basic-shape> clips; polygon() and path() carry their own fill rule. donner/svg/properties/ClipPath.cc:291-301, :416-427; donner/svg/properties/ClipPath.h:119-127 donner/svg/renderer/RendererDriver.cc:1034-1037 (hasOwnClipRule) PolygonClipPath_tests CssPolygonRuleIgnoresElementRule, NestedCssPolygonRuleIgnoresElementRule; PathClipPath_tests FillRuleIsIndependentOfElementAndAncestorClipRule; RendererDriver_tests CssPolygonWindingIsIndependentOfElementClipRule - -
feat:css-masking-1/clip-rule-vs-fill-rule conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-rule Inside a clipPath the child's clip-rule, not its fill-rule, selects the winding rule. donner/svg/properties/PropertyRegistry.cc:1037-1060 (fill-rule) vs :1101-1119 donner/svg/renderer/RenderingContext.cc:958-959 (reads clipRule only) PathClipPath_tests FillRuleIsIndependentOfElementAndAncestorClipRule; resvg clip-rule=evenodd.svg - -
feat:css-masking-1/clip-path-stacking-context conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-path A non-none clip-path creates a stacking context, as opacity does. n/a donner/svg/renderer/RenderingContext.cc:629-632 (isolatedLayer); donner/svg/renderer/RendererDriver.cc:3373-3378 RendererGeode_tests PathClipMaskClipsIsolatedLayerComposite; resvg clip-path-on-children.svg - - SVG paints in document order, so the only observable part is group isolation.
feat:css-masking-1/clip-ancestor-intersection conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#clipping-paths Clips from ancestors (clip-path, overflow) intersect with the element's own clip. n/a donner/svg/renderer/RendererTinySkia.cc:3448-3465 (buildClipMask per pushClip, intersected with the active clip); donner/svg/renderer/RendererGeode.cc:6172-6185 RendererGeode_tests NestedClipSurfaceRejectionSuppressesTheWholeInnerSubtree, ClipPathInsideAnExpandedFilterLayerMatchesTinySkia; resvg nested-clip-path.svg - - Geode source notes only the topmost path-clip mask is bound per draw; nested cases pass because each clip forces an isolated layer (read from the source note, not verified beyond the tests).
feat:css-masking-1/basic-shape-reference-box-mapping conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-path Without a CSS layout box, content-box and padding-box are used as fill-box, border-box and margin-box as stroke-box. donner/svg/properties/ClipPath.cc:29-42 donner/svg/components/shape/ShapeSystem.cc:1196-1207 InsetClipPath_tests SvgReferenceBoxesAndAliases - -
feat:css-masking-1/stroke-bounding-box-algorithm divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#compute-stroke-bounding-box Appendix B: stroke bbox = object bbox inflated by half the stroke width, times miterlimit (miter joins) or sqrt(2) (square caps) for non-rect/ellipse/circle shapes; containers union children; dashing ignored. n/a donner/svg/components/shape/ShapeSystem.cc:197-235 and :1060-1064 (bounds of the real stroke outline) CircleClipPath_tests StrokeBoxUsesStrokeShapeInsteadOfMiterEnvelope, NonScalingStrokeBoxUsesHostStrokeGeometry low S Deliberate; see val:clip-path/stroke-box. Whether dashes shrink Donner's box was not verified.

Features: masking (CSS Masking 7.10, 9)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-masking-1/mask-luminance-computation conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskValues Luminance mask value = luminance-to-alpha coefficients applied to non-premultiplied RGB, multiplied by alpha. n/a tiny-skia: donner/svg/renderer/RendererTinySkia.cc:53-61 -> tiny_skia::Mask::fromPixmap(Luminance); Geode: donner/gpu/shader/programs/ImageBlitSource.h:526-538 (0.2126, 0.7152, 0.0722 on premultiplied samples, equal to luma times alpha) resvg masking/mask/simple-case.svg, mask-type=luminance.svg, with-opacity-2.svg (both backends); RendererDriver_tests EmitsMaskSequenceForMaskedElement - - Coefficients are the Filter Effects 1 set (0.2126/0.7152/0.0722); the TR cites the SVG 1.1 feColorMatrix set (0.2125/0.7154/0.0721). The difference is at most 0.0002 per channel, below one 8-bit step.
feat:css-masking-1/mask-luminance-linearrgb conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskValues When color-interpolation on the mask element computes to linearRGB, convert mask colors to linearRGB before taking luminance. donner/svg/properties/PropertyRegistry.h:300 (color-interpolation property) donner/svg/renderer/RendererDriver.cc:3850-3862; donner/svg/renderer/RendererTinySkia.cc:55-57 (srgbToLinear on the capture); ImageBlitSource.h:539-544 (mode 3) resvg masking/mask/color-interpolation=linearRGB.svg (both backends) - -
feat:css-masking-1/mask-alpha-computation conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskValues Alpha mask value = alpha channel of the mask content. n/a donner/svg/renderer/RendererTinySkia.cc:58-60; donner/svg/renderer/geode/GeoEncoder.cc:3332 (maskMode 2) resvg mask-type=alpha.svg - -
feat:css-masking-1/mask-image-channel-handling conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskValues RGB images in a mask get alpha 1; single-channel images are expanded to RGB with alpha 1. image decode path not traced (see paint_servers_markers_images.md) donner/svg/renderer/RendererDriver.cc:3465-3495 (image drawn as RGBA into the mask capture) resvg masking/mask/with-image.svg (v0.49 reference), with-grayscale-image.svg - - Decoder internals belong to paint_servers_markers_images.md; verified here only through the two resvg cases.
feat:css-masking-1/mask-uncovered-region-transparent conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskValues Regions not covered by mask content are transparent black (mask value 0). n/a donner/svg/renderer/RendererTinySkia.cc:2181 (capture starts transparent); donner/svg/renderer/RendererGeode.cc:6617 (clear to 0,0,0,0) resvg masking/mask/simple-case.svg, no-children.svg, invalid-child.svg - -
feat:css-masking-1/mask-multiplies-alpha conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskValues The element's alpha is multiplied by the mask value. n/a donner/svg/renderer/RendererTinySkia.cc:2241-2258 (applyMask); donner/svg/renderer/RendererGeode.cc:6732-6734 (blitFullTargetMasked) resvg masking/mask/with-opacity-1.svg, -2.svg, -3.svg - -
feat:css-masking-1/mask-xywh-defaults-all-unspecified spec-ambiguity https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-x The 2021 text defines the -10%/-10%/120%/120% defaults and the region clip only when at least one of x, y, width, height is specified. donner/svg/components/paint/MaskComponent.h:17-37 (useAutoBounds has no caller) donner/svg/renderer/RendererDriver.cc:3813-3816 (defaults always applied, region always clipped) resvg maskUnits=userSpaceOnUse-without-rect.svg, simple-case.svg (references use the fixed default region) low S SVG 1.1, browsers and resvg always apply the default region; Donner matches them.
feat:css-masking-1/mask-region-clip conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskElement Mask content is clipped to the x/y/width/height rectangle. n/a tiny-skia donner/svg/renderer/RendererTinySkia.cc:2208-2215 (antialiased rect intersected with coverage); Geode donner/svg/renderer/RendererGeode.cc:6626-6636 (path clip for rotated regions), :6721-6726 (fragment-center bounds for axis-aligned) resvg half-width-region-with-rotation.svg, maskUnits=userSpaceOnUse-with-rect.svg; RendererGeode_tests RotatedMaskRegionDirectPopRestoresClip, QuarterTurnMaskRegionsKeepTheAxisAlignedSurfaceBudget - - Backends differ in edge treatment for axis-aligned regions: tiny-skia antialiases the region edge, Geode cuts at fragment centers.
feat:css-masking-1/mask-zero-or-negative-size partial https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#element-attrdef-mask-width Zero or negative width/height disables rendering of the masked element. donner/svg/parser/AttributeParser.cc:198-208 (no sign check) donner/svg/renderer/RendererDriver.cc:3836-3840; donner/svg/renderer/RendererTinySkia.cc:998-1007 none low S Zero: empty region, element hidden (by code reading). Negative: unverified on both backends.
feat:css-masking-1/mask-on-mask-element conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-mask The mask property on a mask element applies to that mask's rendered content. n/a donner/svg/renderer/RenderingContext.cc:517-528 (mask root instance in the offscreen subtree resolves its own mask) resvg mask-on-self.svg, mask-on-self-with-mask-type=alpha.svg, mask-on-self-with-mixed-mask-type.svg - -
feat:css-masking-1/nested-masks conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-mask Mask content may itself be masked (mask on a child of a mask). n/a donner/svg/renderer/RenderingContext.cc:1315-1331 (offscreen subtree per masked shadow entity); donner/svg/renderer/RendererDriver.cc:3868-3895 resvg mask-on-child.svg, nested-objectBoundingBox.svg - -
feat:css-masking-1/mask-recursion conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-mask Not specified by the TR; self and mutual references must not loop. n/a donner/svg/renderer/RenderingContext.cc:1291-1312 (activeMaskElements_ and one-step lookahead treat cyclic masks as none) resvg recursive.svg, recursive-on-self.svg, self-recursive.svg (compared); recursive-on-child.svg (UndefinedBehavior, render only) - - Behavior follows resvg: every mask in the cycle is treated as none.
feat:css-masking-1/mask-display-opacity-filter-not-applied divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskElement display, opacity and filter do not apply to the mask element; a mask stays usable when it or an ancestor has display:none. n/a donner/svg/renderer/RenderingContext.cc:443-446 (display:none on the mask's offscreen root returns no instance, so no subtree), :619-627 (opacity and filter on the root create layers); donner/svg/renderer/RendererDriver.cc:3899-3901 (no subtree: mask skipped) none (a search for 'display' in donner/svg/tests/SVGMaskElement_tests.cc and resvg masking/mask finds no case) medium S By code reading, unverified by execution: <mask display="none"> leaves the element unmasked; opacity or filter on the mask element changes the mask. display:none on an ancestor of the mask is fine because display is not inherited.
feat:css-masking-1/mask-property-inheritance divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#MaskElement Properties inherit into the mask element from its ancestors, not from the referencing element. donner/svg/components/shadow/ShadowTreeSystem.cc:330-333 (the root of an offscreen shadow branch is not attached to a parent) donner/svg/components/style/StyleSystem.cc:850-869 (parent == null: no inheritance for the offscreen mask root, so its children inherit only from it) none medium M By code reading, unverified by execution: inherited properties set on ancestors of the mask (fill, stroke, color, font-*, visibility) do not reach mask content, for example <g fill="white"><mask><rect .../></mask></g> renders the rect black. Nothing inherits from the referencing element, which is correct. mask-type and color-interpolation are read from the light-tree mask element and do inherit correctly (donner/svg/renderer/RendererDriver.cc:3847-3851).
feat:css-masking-1/mask-content-model conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-mask Mask may contain shapes, text, images, structural elements, use and more; all render into the mask. donner/svg/SVGMaskElement.cc:17-20 (ShadowOnlyChildren) donner/svg/renderer/RenderingContext.cc:1492-1498, :1327 resvg with-image.svg, with-clip-path.svg, invalid-child.svg, invisible-child-1.svg, invisible-child-2.svg; RenderingContext_tests MaskElement - - Children Donner does not implement elsewhere (foreignObject, cursor, font) are out of scope here.
feat:css-masking-1/mask-transform-ignored conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#elementdef-mask mask has no transform attribute; a transform on it has no effect. donner/svg/SVGMaskElement.cc:20-21 (appliesSelfTransform = false) donner/svg/renderer/RendererDriver.cc:3950-3951 resvg transform-has-no-effect.svg - -
feat:css-masking-1/invalid-mask-reference divergent https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-image A mask reference that is missing or not a mask element still counts as a transparent black layer, hiding the element. donner/svg/renderer/RenderingContext.cc:1289-1290, :1335 donner/svg/renderer/RenderingContext.cc:522-528 (invalid mask leaves the element unmasked) resvg invalid-FuncIRI.svg (reference shows the element; passes) low S Spec-ambiguity in practice: section 10 says a fetch error behaves as none, and browsers and resvg keep SVG content visible.
feat:css-masking-1/effect-order conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#placement Effects apply in the order filter, clipping, masking, opacity. n/a donner/svg/renderer/RendererDriver.cc:3359-3380 (push order: isolated layer for opacity, mask, clip, filter; popped in reverse) RendererGeode_tests FilterAppliedBeforeClipPathSvgRenderingOrder; resvg filters/filter/with-clip-path-and-mask.svg, masking/mask/with-clip-path.svg, with-opacity-3.svg - - SVG 2 render.html 3.6 only says effects apply to the group result before its transform; the order comes from CSS Masking and Filter Effects.
feat:css-masking-1/multiple-mask-layers missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#layering The number of layers follows mask-image; other mask lists repeat to match; layers are converted to alpha and composited with mask-composite. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 donner/svg/renderer/RendererDriver.cc:3915-3917 (only a single mask is supported) none low L
feat:css-masking-1/mask-image-css-images missing https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-image CSS images and gradients can be mask layers, positioned and tiled like backgrounds, alpha mode by default. absent: a search for 'mask-image', 'mask-mode', 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin', 'mask-size', 'mask-composite', 'mask-border', 'MaskMode', 'MaskComposite' over non-test .cc/.h in donner/svg and donner/css returns nothing; unregistered names take the unknown-property path at donner/svg/properties/PropertyRegistry.cc:3461 none (never parsed) none medium XL Mask-element references are the only supported source.
feat:css-masking-1/mask-stacking-context-isolated-group conformant https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-image-rendering-model A masked element is a stacking context; it and its descendants are rendered as one group and masked as a whole; mask layers are rendered as an isolated group. n/a donner/svg/renderer/RenderingContext.cc:634-637; donner/svg/renderer/RendererTinySkia.cc:2156-2194 (separate capture and content surfaces); donner/svg/renderer/RendererGeode.cc:6574-6637 RendererDriver_tests RendererGroupMaskTest.KeepsMaskActiveThroughChildrenAndRestoresForSibling; resvg on-group-with-transform.svg - -
feat:css-masking-1/mask-no-geometry-or-hit-effect conformant-untested https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-mask-image-rendering-model Masking does not affect geometry or hit testing. n/a donner/svg/renderer/RenderingContext.cc:1760-1800 (hit test ignores masks); donner/svg/components/shape/ShapeSystem.cc:1053-1058 none - - No dedicated test.
feat:css-masking-1/security-fetch-and-timing not-applicable https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#priv-sec Mask and clip sources use CORS-enabled anonymous fetch; masking time must not depend on pixel values. n/a n/a none - - Donner resolves only same-document references for clip-path and mask and performs no network fetch here; constant-time compositing is a browser threat-model requirement that was not assessed.
feat:css-masking-1/dom-interfaces not-applicable https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#DOMInterfaces SVGClipPathElement and SVGMaskElement IDL interfaces. n/a donner/svg/SVGClipPathElement.h, donner/svg/SVGMaskElement.h (C++ accessors, not WebIDL) SVGMaskElement_tests Defaults, SetMaskUnits, SetRegionAttributesProgrammatically; SVGClipPathElement_tests Defaults, SetClipPathUnits - - No script engine; the C++ API exposes the same attributes. SVGClipPathElement has no transform accessor of its own (inherited element API not checked).
feat:css-masking-1/property-animation-types not-applicable https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-path CSS animation types (by computed value, discrete, repeatable list) for the masking properties. n/a n/a none - - CSS animations and transitions are outside an SVG user agent without CSS animation support; SMIL animation of these presentation attributes belongs to animation.md.

Features: SVG 2 render and coords chapters (clipping, masking, overflow)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2-render/never-rendered-clippath-mask conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#TermNeverRenderedElement clipPath and mask are never rendered directly regardless of display. donner/svg/SVGClipPathElement.cc:11-13; donner/svg/SVGMaskElement.cc:17-18 donner/svg/renderer/RenderingContext.cc:426-437 RenderingContext_tests MaskElement; resvg masking/*/simple-case.svg (definitions do not paint) - -
feat:svg2-render/non-rendered-descendants-in-clip-mask conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#Rendered-vs-NonRendered Non-rendered descendants (display:none, failed conditional processing) do not contribute to clip or mask geometry. n/a donner/svg/renderer/RenderingContext.cc:260-263 (clip), :414-446 (mask subtree traversal honors display and conditional processing) resvg clipPath/invisible-child-1.svg, mask/invisible-child-1.svg - - Conditional-processing attributes on clipPath children are not evaluated in the clip collector (donner/svg/renderer/RenderingContext.cc:240-265 has no such check): unverified gap, low impact.
feat:svg2-render/visibility-hidden-in-clip spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#VisibilityControl render.html says a visibility:hidden element still contributes to clipping paths; CSS Masking 6.1 says it does not. n/a donner/svg/renderer/RenderingContext.cc:260-263 (hidden children excluded) resvg clipPath/invisible-child-2.svg low S Donner follows CSS Masking and the resvg reference. SVG 2 (render.html 3.2.3) says a hidden element still contributes to clipping paths; CSS Masking 1 says a clipPath child made invisible by visibility does not contribute. The two normative texts conflict; Donner follows CSS Masking (donner/svg/renderer/RenderingContext.cc:887-890). Also recorded in styling_properties.md (feat:svg2/render-visibility-hidden-clip-contribution) and noted on val:visibility/hidden in color_compositing.md.
feat:svg2-render/graphical-effect-isolated-fragment conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#ReusedGraphics Mask and clipPath content is rendered as a self-contained fragment: its own stacking context and an isolated group; display:none on the effect element or an ancestor does not disable it. n/a donner/svg/renderer/RendererTinySkia.cc:2156-2194; donner/svg/renderer/RendererGeode.cc:6574-6637 (mask capture surface); clip geometry is collected, not composited resvg masking/mask/with-opacity-2.svg - - The display:none exception fails for mask (see mask-display-opacity-filter-not-applied).
feat:svg2-render/stacking-context-mask-element conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#EstablishingStackingContex The mask element always establishes a stacking context. n/a donner/svg/renderer/RendererTinySkia.cc:2156-2194 (own surface) resvg masking/mask/simple-case.svg - -
feat:svg2-render/stacking-context-clip-path-property conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#EstablishingStackingContex clip-path other than none establishes a stacking context. n/a donner/svg/renderer/RenderingContext.cc:629-632 RendererGeode_tests PathClipMaskClipsIsolatedLayerComposite - -
feat:svg2-render/stacking-context-mask-property conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#EstablishingStackingContex mask other than none establishes a stacking context. n/a donner/svg/renderer/RenderingContext.cc:634-637 RendererDriver_tests RendererGroupMaskTest.KeepsMaskActiveThroughChildrenAndRestoresForSibling - - An invalid mask reference does not isolate (donner/svg/renderer/RenderingContext.cc:522-528), although the computed value is not none; not observable without blending.
feat:svg2-render/stacking-context-clip-property missing https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#EstablishingStackingContex clip other than auto establishes a stacking context on viewport-establishing elements, pattern and mask. absent: a search for '"clip"' in donner/svg/properties/PropertyRegistry.cc returns nothing (not in kProperties, not in kValidPresentationAttributeEntries :2426-2500); a clip declaration takes the unknown-property path :3461 none (never parsed) none low S Follows prop:clip.
feat:svg2-render/stacking-context-nested-svg-overflow partial https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#EstablishingStackingContex A nested svg with overflow other than visible establishes a stacking context (and svg always creates an isolated group, 3.10). n/a donner/svg/renderer/RenderingContext.cc:462-468 (clip rect only; no isolated layer), :617-642 (layer triggers do not include overflow or svg) none low S Observable only with mix-blend-mode inside a nested svg. See also structure.md.
feat:svg2-render/clipping-and-masking-delegated conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#ClippingAndMasking SVG 2 defers clipping and masking to CSS Masking; clip paths use path, text and basic shapes; masks are containers. n/a see css-masking-1 rows resvg masking/clipPath/simple-case.svg, masking/mask/simple-case.svg - - The SVG 2 masking chapter is a removal stub (masking.html).
feat:svg2-render/overflow-visible conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties overflow: visible creates no clipping rectangle. donner/svg/properties/PropertyRegistry.cc:908-925 donner/svg/renderer/RenderingContext.cc:462-468; donner/svg/renderer/RendererDriver.cc:4370-4371 resvg structure/svg/nested-svg-with-overflow-visible.svg, structure/symbol/with-overflow-visible.svg, painting/overflow/visible-on-marker.svg - -
feat:svg2-render/overflow-hidden conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties overflow: hidden clips to the exact SVG viewport. donner/svg/properties/PropertyRegistry.cc:916-917 donner/svg/renderer/RenderingContext.cc:462-468 -> donner/svg/renderer/RendererDriver.cc:3329-3334 (viewport clip rect) RenderingContext_tests UseOfInlineSvgOverridesSizeAndClips; resvg structure/svg nested cases, painting/marker/default-clip.svg - -
feat:svg2-render/overflow-scroll conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties overflow: scroll clips like hidden (a scrolling mechanism is optional). donner/svg/properties/PropertyRegistry.cc:918-919 donner/svg/renderer/RenderingContext.cc:465 (any value other than visible/auto clips) resvg painting/overflow/scroll-on-marker.svg - - No scrolling mechanism exists in a static renderer.
feat:svg2-render/overflow-auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties Without a scrolling mechanism, auto must be treated as visible. donner/svg/properties/PropertyRegistry.cc:920-921 donner/svg/renderer/RenderingContext.cc:465; donner/svg/renderer/RendererDriver.cc:4371 resvg structure/svg/nested-svg-with-overflow-auto.svg, painting/overflow/auto-on-marker.svg - - Donner's initial value is visible (donner/svg/properties/PropertyRegistry.h:195-196) where CSS says auto; indistinguishable in rendering because auto is treated as visible.
feat:svg2-render/ua-stylesheet-overflow conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#UAStyleSheet UA sheet: svg:not(:root), image, marker, pattern, symbol { overflow: hidden }. donner/svg/core/UserAgentStylesheet.h:17 donner/svg/renderer/RenderingContext.cc:462-468 RenderingContext_tests.cc:767-770, :890 (UA rule comments and cases); resvg painting/overflow/inherit-on-marker.svg, inherit-on-marker-without-parent.svg - - A presentation attribute with an invalid value does not override the UA rule (see structure.md).
feat:svg2-render/overflow-root-svg conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties The document root svg is not covered by the UA hidden rule; content is bounded by the canvas. donner/svg/core/UserAgentStylesheet.h:17 (:not(:root)) donner/svg/components/layout/LayoutSystem.cc:850-855 (root bounds = canvas) resvg structure/svg cases with viewBox and preserveAspectRatio - - With preserveAspectRatio letterboxing, content outside the root viewBox but inside the canvas stays visible, which matches overflow: visible on the root.
feat:svg2-render/overflow-nested-svg conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties Nested svg: UA hidden; overflow value controls the viewport clip. donner/svg/core/UserAgentStylesheet.h:17 donner/svg/components/layout/LayoutSystem.cc:829-843 (clipRect); donner/svg/renderer/RenderingContext.cc:462-468 resvg structure/svg/nested-svg-with-overflow-visible.svg, nested-svg-with-overflow-auto.svg; RenderingContext_tests UseOfInlineSvgOverridesSizeAndClips - -
feat:svg2-render/overflow-symbol conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties symbol instantiated by use: UA hidden; overflow controls the viewport clip. donner/svg/core/UserAgentStylesheet.h:17 donner/svg/components/layout/LayoutSystem.cc:831-833 (shadow sized element bounds) resvg structure/symbol/with-overflow-visible.svg; SVGSymbolElement_tests.cc:427, :469 (overflow: visible) - -
feat:svg2-render/overflow-marker conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/painting.html#MarkerElement marker: UA hidden; when clipping, the clip is the marker viewport (markerWidth x markerHeight). donner/svg/core/UserAgentStylesheet.h:17 donner/svg/renderer/RendererDriver.cc:5125-5136 (clip rect = markerSize mapped into viewBox units by the inverse viewBox transform, pushed in marker space) RendererRegressionTests.MarkerOverflowClipsToItsViewportNotItsViewBox; RendererRegressionTests.MarkerOverflowClipFollowsAlignmentOriginAndRotation; resvg painting/overflow/* (5 cases), painting/marker/default-clip.svg (300 px AA allowance), painting/marker/with-viewBox-1.svg - - Marker details belong to paint_servers_markers_images.md.
feat:svg2-render/overflow-pattern partial https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties pattern: UA hidden; overflow: visible must not clip tile content. donner/svg/core/UserAgentStylesheet.h:17 a case-insensitive search for 'overflow' in donner/svg/renderer/RendererDriver.cc shows only the marker path (:4367-4371); pattern tiles are always clipped to the tile resvg paint-servers/pattern/overflow=visible.svg (UndefinedBehavior, render only, donner/svg/renderer/tests/resvg_test_suite.cc:725) low M hidden (the UA default) is correct; overflow="visible" on a pattern is ignored. SVG 1.1 left the visible case implementation-defined; the SVG 2 table lists visible as visible.
feat:svg2-render/overflow-image partial https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties image: UA hidden; overflow: visible must not clip the image to its viewport. donner/svg/core/UserAgentStylesheet.h:17 donner/svg/renderer/RendererDriver.cc:3478-3491, :4703-4705 (image always clipped to its bounds; overflow not read) none for overflow on image low S Only matters for preserveAspectRatio slice with overflow: visible.
feat:svg2-render/overflow-foreignobject not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties foreignObject: overflow per CSS, initial visible. a case-insensitive search for 'foreignObject' in donner/svg/ElementType.h and donner/svg/AllSVGElements.h returns nothing none none - - foreignObject itself is not implemented (owned by structure.md), so its overflow clip has no subject.
feat:svg2-render/overflow-text spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#OverflowAndClipProperties The summary table lists text with a UA-stylesheet value of hidden, but the UA style sheet (styling.html 6.8) has no rule for text. donner/svg/core/UserAgentStylesheet.h:17 (no text rule) donner/svg/components/layout/LayoutSystem.cc:829-843 (text has no clip rect) none low S Donner follows the UA style sheet: text is never overflow-clipped. Text wrapping overflow belongs to text_layout.md.
feat:svg2-coords/viewport-overflow-clip conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports Whether a new SVG viewport also establishes a clipping path is decided by overflow on the viewport-establishing element. n/a donner/svg/renderer/RenderingContext.cc:462-468 resvg structure/svg/nested-svg-with-overflow-visible.svg - -
feat:svg2-coords/clippath-mask-no-viewport conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports clipPath and mask do not establish a viewport; percentages in their content resolve against the referencing context's viewport, not the effect region. n/a donner/svg/components/layout/LayoutSystem.cc:836-843 (no ViewBoxComponent on mask or clipPath); donner/svg/renderer/RendererDriver.cc:3811 resvg maskUnits=userSpaceOnUse-with-percent.svg - - Percentages inside mask content were not traced through the offscreen shadow tree; unverified.
feat:svg2-coords/objectboundingbox-units conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits objectBoundingBox maps (0,0)-(1,1) to the bbox; for region attributes a percentage equals the fraction; values outside 0..1 are allowed. donner/svg/parser/AttributeParser.cc:90-112 donner/svg/renderer/RendererDriver.cc:3817-3834 (mask), :983-989 (clip) resvg maskUnits=objectBoundingBox-with-percent.svg, clipPathUnits=objectBoundingBox.svg; RendererRegression_tests ObjectBoundingBoxClipOnTransformedTextUsesLocalGlyphCells - - For text the bbox is the union of glyph cells (donner/svg/renderer/RendererDriver.cc:354-370).
feat:svg2-coords/objectboundingbox-zero-size partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits When the applicable element's geometry has no width or no height and objectBoundingBox is used, the effect is ignored. n/a donner/svg/renderer/RendererDriver.cc:3868-3875 (mask content skipped whenever the bbox is empty, for any units), :983-989 (clip: degenerate scale) resvg masking/mask/on-a-horizontal-line.svg, masking/clipPath/on-a-horizontal-line.svg (userSpaceOnUse clip), mask/on-a-small-object.svg low S By code reading: (1) a mask with maskUnits and maskContentUnits both userSpaceOnUse on a zero-height element (stroked horizontal line) also has its content skipped, hiding the line although no bbox units are involved; (2) for an objectBoundingBox mask or clip on such an element Donner hides the element, matching resvg and browsers, whereas the literal text says the effect is ignored.
feat:svg2-coords/bbox-clipped-option not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes The bounding box algorithm's clipped flag intersects the box with clip-path, overflow and clip. n/a a search for 'clipped' in donner/svg/components/shape and donner/svg/SVGGraphicsElement.h finds no bbox option none - - Only reachable through getBBox(options) in the DOM; Donner's bounds API has no clipped variant.

Tests to create

  • prop:clip-rule, https://www.w3.org/TR/2021/CRD-css-masking-1-20210805/#the-clip-rule: <clipPath id="c"><path d="star with overlapping winding"/></clipPath><rect clip-path="url(#c)" clip-rule="evenodd"/>; expected: no hole (nonzero). Also the inherited variant with <g clip-rule="evenodd"> around the rect.
  • val:clipPathUnits/objectBoundingBox, #valdef-clippathunits-objectboundingbox: objectBoundingBox clipPath whose child rect has transform="translate(0.5 0)" and, separately, rotate(45 0.5 0.5); expected: translation by half the box width.
  • feat:css-masking-1/clip-path-on-clippath-element, #ClipPathElement: userSpaceOnUse clipPath with clip-path pointing at an objectBoundingBox clipPath.
  • feat:css-masking-1/clip-path-on-clippath-child: text child of a clipPath carrying its own clip-path; expected: clipped glyph silhouette.
  • feat:css-masking-1/clippath-use-direct-reference: clipPath with <use href="#r"/> where #r has visibility="hidden", and where #r has display="none".
  • feat:css-masking-1/clippath-no-ancestor-clip-inheritance: clipPath nested inside a group that has its own clip-path; expected: the outer clip does not restrict the clipPath content.
  • feat:css-masking-1/clip-pointer-events, #clipping-paths: hit test at a point inside an element's geometry but outside its clip-path; expected: no hit. Same for a point outside a nested svg viewport with overflow hidden.
  • val:clip-path/<geometry-box> alone: clip-path: view-box and clip-path: fill-box on a stroked shape.
  • val:clip-path/rect(), xywh(), shape(), polygon round, circle(closest-corner), ellipse(farthest-corner): one parse and one render case each (css-shapes-1 section 3.1).
  • val:clip-path/inset(): inset(1vw) and inset(1ex); expected: accepted.
  • val:mask/none: stylesheet rect { mask: url(#m) } with style="mask: none" on one rect; expected: unmasked.
  • val:mask/<mask-source> url(): mask: url("#m") and mask='url("#m")'; expected: masked. mask: url(#m) bogus; expected: declaration ignored.
  • prop:mask-image, prop:mask-mode: mask-image: url(#m) in a stylesheet; mask-mode: alpha over a luminance mask element.
  • feat:css-masking-1/mask-display-opacity-filter-not-applied, #MaskElement: <mask display="none">, <mask opacity="0.5">, <mask filter="url(#blur)">; expected: identical to the plain mask.
  • feat:css-masking-1/mask-property-inheritance: <g fill="white"><mask id="m"><rect width="100%" height="100%"/></mask></g>; expected: fully visible target.
  • feat:css-masking-1/mask-zero-or-negative-size: masks with width="0", height="0", width="-10"; expected: masked element not rendered, both backends.
  • feat:css-masking-1/invalid-mask-reference: record the chosen behavior for mask="url(#missing)" and mask="url(#aRect)" in a unit test (currently only the resvg case).
  • feat:css-masking-1/mask-no-geometry-or-hit-effect: bounds and hit test of a masked element equal the unmasked ones.
  • feat:svg2-coords/objectboundingbox-zero-size: stroked horizontal line with a mask using maskUnits="userSpaceOnUse" maskContentUnits="userSpaceOnUse"; expected: line visible through the mask.
  • feat:svg2-render/overflow-pattern, overflow-image: overflow="visible" on pattern and on image with preserveAspectRatio="xMidYMid slice".
  • feat:svg2-render/stacking-context-nested-svg-overflow: nested svg containing a mix-blend-mode: multiply child over an outer backdrop.
  • prop:clip, #clip-property: clip="rect(10 90 90 10)" and the comma form on a nested svg; currently rendered without comparison.

Unverified / could not fetch

  • All specification pages listed above were fetched successfully. CSS Values (for <position>) was not fetched; the statement that the 3-component position form is no longer part of <position> is from memory, unverified.
  • Everything marked "by code reading" was not executed: in particular the clip-rule leak, the objectBoundingBox transform order, display/opacity/filter on the mask element, and the missing ancestor inheritance for mask content. Each is derived from the cited lines only.
  • Negative mask width or height: the result on both backends was not determined.
  • Conditional-processing attributes on clipPath children: no check was found in the clip collector; whether an earlier stage filters such children was not traced.
  • Percentages inside mask content (which viewport they resolve against in the offscreen shadow tree) were not traced.
  • The image decode path for RGB and grayscale images inside masks was verified only through the two resvg cases, not by reading the decoder.
  • Geode nested path-clip intersection relies on each clip forcing an isolated layer; verified through the passing resvg cases, not by reading the full Geode clip stack.
  • Whether dashing shrinks Donner's stroke-box was not checked.