Skip to content

[css-env] env(theme-color) or: Access to Author-Specified Document Metadata #575

@Crissov

Description

@Crissov

Like local element attributes with attr(), it would sometimes be handy to be able to access document-wide meta data, e.g. with HTML:

<meta name="theme-color" content="#F00B42">
h1 {color: meta("theme-color" color, red;)}
h2 {background: meta("theme-color" color, red;)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions