-
Notifications
You must be signed in to change notification settings - Fork 759
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-variables-1Current WorkCurrent Work
Description
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` */
}var(background-color)would basically solve [css-color-5] AddcurrentBackgroundColorVariable #5292.var(font-size)would be almost the same as1em.var(line-height)would be almost the same as1lh. [css-values] The lh and rlh units are more complicated than what they seem. #3257
Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-variables-1Current WorkCurrent Work