Skip to content

Add feature CSS linked parameters #3492

@captainbrosset

Description

@captainbrosset

Specification

https://drafts.csswg.org/css-link-params/

Description

CSS Linked Parameters is a feature which allows web developers to customize SVG images that are displayed in web documents via <img> HTML tags or background-image CSS properties.

Displaying SVG images by embedding <svg> tags inline in an HTML document makes it very convenient to apply CSS styles to both the document and the SVG image from the same stylesheet. However, non-inline SVGs (<img> and background-images) currently can’t be styled by using the parent document’s CSS.

The main use case is being able to style SVG icons from icon libraries, without having to inline the corresponding SVGs. See w3c/csswg-drafts#9872.

Documentation

None

Browser support

No response

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    early featuresFeature definition work for features without shipping implementationsfeature definitionCreating or defining new features or groups of features.feature entry requestA request for a new web platform feature entry

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions