← Back to release summary

Support external SVG resources for 'clip-path', 'fill', 'stroke' and 'marker-*' properties

Category
Graphics
Type
Chromium catches up
Status
Enabled by default (Chrome 131)
Intent stage
None

WPT details: https://wpt.fyi/results/css/css-masking/clip-path/clip-path-url-reference-external.html https://wpt.fyi/results/svg/linking/reftests/url-processing-fetch-properties-001.sub.svg https://wpt.fyi/results/svg/linking/reftests/url-processing-fetch-properties-002.sub.svg https://wpt.fyi/results/svg/painting/reftests/gradient-external-reference.svg https://wpt.fyi/results/svg/painting/reftests/marker-external-reference.svg https://wpt.fyi/results/svg/painting/reftests/pattern-external-reference.svg

Summary

Allow external references for clip paths, markers, and paint servers (for the 'fill' and 'stroke' properties). For example, clip-path: url("resources.svg#myPath").

Motivation

This feature allows easily sharing SVG paint servers, clip paths and markers between different documents, and, for example, having a library of such resources.

Standards & signals

Ecosystem

View on chromestatus.com