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

> 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