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

One other problem with doing this:

While [CSS 2 defined <code>url()</code> containing quoted urls as URI 
tokens](https://drafts.csswg.org/css2/syndata.html#tokenization), this
 has changed in css-syntax-3, which [defines <code>url()</code> 
containing quoted url as a function token plus the normally-tokenized 
arguments](https://drafts.csswg.org/css-syntax/#consume-ident-like-token).
  I presume this change is to support the [&lt;url-modifier&gt; 
concept in css-values-3](https://drafts.csswg.org/css-values-3/#urls).

Given those definitions, only some <code>url()</code> functions are 
actually tokens.  So the underlying mechanism for describing this 
would need to be further from the way the spec works.  (Although maybe
 not further implementations, since 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.)

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

Received on Sunday, 11 December 2016 03:59:19 UTC