Skip to content

[css-values-5] Behavior of ident() in at-rule preludes #12219

Open
@andruud

Description

@andruud

The spec says:

The ident() function can be used as a value for any property or function argument that accepts a <custom-ident>.

Does this mean that it's not valid in other contexts? For example: @position-try ident("--p" 1) {}. If it is valid, what happens with e.g. @position-try ident("--p" sign(16px - 1em)) {}? Or @position-try ident("--p" sibling-index()) {}?

@container ident("--p" sign(16px - 1em)) {}, if valid, would need to resolve em (etc) against something that's not the container's font-size (unlike em in the query itself), since the ident is the thing that determines what to query.

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