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

Yes, and we would like that not to be a behavior change from untyped 
variables. Typing should only get you transitionability and type 
checking, but should otherwise not change the behavior.

That is why the proposal was to remember the origin of the url() token
 so that you can always resolve based on that instead of the url of 
the document it was finally used on. This is not incompatible with 
what is currently specified but would require a clarification.

The issue of doing (c) is that we basically make it impossible to 
create variables to images if you own a theme.css but do no know on 
which site(s) your theme will be installed on (but you know the images
 will be in the same folder as your css file). This is very 
user-hostile.

I would not object clarifying (b) if that is what the group want to 
do, but this is in clear violation of our own specs where we argue 
authors should not use absolute urls (and yet those would be the only 
one working properly in this case).

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

Received on Friday, 25 November 2016 05:49:24 UTC