8000 [css-content] Should content property work with non-string variables? · Issue #703 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-content] Should content property work with non-string variables? #703

@dauwhe

Description

@dauwhe

On Twitter there was a request for CSS variables to be used with the content property:

label:before {
content: var(--spacing);
}

This works only if the variable is a string.

Are there good use cases for this? There was some skepticism on the Twitter thread.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0