Back to Interop 2027 proposals

CSS Linked Parameters for SVG

Proposed by web-platform-tests/interop#1346
Participate in this proposal on GitHub

Direct 1-click actions are temporarily unavailable for Interop proposals pending repository app approval. Cast your vote by adding a +1 reaction or join the discussion directly on GitHub.

Open issue on GitHub

Linked parameters provides three ways for developers to style SVG images.

img {
    link-parameters: param(--color, blue);
}
<img src="example.svg#:~:param(--color,blue)">
.icon {
  background-image: url("example.svg", param(--color, blue));
}

Discussion on GitHub (2)

@o-t-w Looks like the github bot needs the literal string "Link parameters" to be edited into the original post, not the link to the feature.