Skip to content

[css-var] var(property) #5729

@Crissov

Description

@Crissov

Will var(foo) always resolve to the value of the foo property if anything at all?
That is, currently foo is limited to a <dashed-ident> for custom properties, so always has a prefix of a double hyphen-minus --, but if var() was ever specified to accept other values then those would be the normal properties defined by CSS modules and never anything else.

bar 
{
  --color: orange;
  color: green;
  background-color: var(color, red); /* similar to `currentcolor` */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.css-variables-1Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions