Re: [csswg-drafts] css expression inheritance

I think it's a bit confusing that some things like `var()` and `inherit` are resolved in the element which has the declaration, but other things like `em` units are resolved on the element that uses the variable.

Maybe add a `token` or `raw` functional notation that accepts a sequence of tokens and represents them literally, without allowing them to be substituted, and without adding variables into the dependency graph. Like `--prop: token(inherit)` or `--prop: token(var(--foo))`. Then `var(--prop)` would remove the `token()` and resolve what's inside it.

Would this make sense, syntactically?

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2749#issuecomment-396043654 using your GitHub account

Received on Sunday, 10 June 2018 12:02:44 UTC