W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

Re: [csswg-drafts] [css-variables] Relative URL resolution in var() references

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Sun, 11 Dec 2016 18:52:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-266299685-1481482343-sysbot+gh@w3.org>
> Gecko and possibly other implementations of variables actually store
 strings rather than token streams, since a string can always be 
turned back into a token stream, and it's more compact.

Frankly, I've found the idea that variables are token streams rather 
hard to teach:

Me: So you cannot do `width: var(--number)em;` because variables are 
not strings, but token streams. Also you cannot animate them, because 
the browser doesn't know what type they are.
Audience: But didn't you say they are token streams? Then the browser 
*does* know what type they are, no?
Me: Ummm…

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/757#issuecomment-266299685 
using your GitHub account
Received on Sunday, 11 December 2016 18:52:35 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:27 UTC