W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2018

Re: [csswg-drafts] css expression inheritance

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sun, 10 Jun 2018 12:02:36 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-396043654-1528632155-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Sunday, 10 June 2018 12:02:45 UTC