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

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

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Fri, 25 Nov 2016 05:49:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-262885264-1480052956-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:05 UTC