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

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

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Thu, 24 Nov 2016 07:17:11 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-191448743-1479971829-sysbot+gh@w3.org>
LeaVerou has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-variables] Relative URL resolution in var() references ==
Related discussions:
https://twitter.com/LeaVerou/status/801661659949371392
https://bugs.chromium.org/p/chromium/issues/detail?id=618165

Summary: Relative URL resolution in var() is underspecified and 
currently buggy in all browsers.
The main issue is, as @tabatkins pointed out in the second linked 
thread above is this:

```css
a.css
--a: "a.png";

b.css
--b: url(var(--a));

c.css
background-image: var(--b); /* resolved according to a, b, or c? */
```

Since CSS Variables are uninterpreted token streams, it should be c 
(which is what @dbaron and I think), but some members (such as 
@FremyCompany in the first thread) argue that this may not be useful 
to authors.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/757 using your GitHub 
account
Received on Thursday, 24 November 2016 07:17:17 UTC

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