W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

[csswg-drafts] [CSS2] empty url() behaviour needs errata to match Level 3

From: Geoffrey Sneddon via GitHub <sysbot+gh@w3.org>
Date: Sun, 21 Jan 2018 21:47:22 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-290308844-1516571241-sysbot+gh@w3.org>
gsnedders has just created a new issue for https://github.com/w3c/csswg-drafts:

== [CSS2] empty url() behaviour needs errata to match Level 3 ==
https://drafts.csswg.org/css-values-3/#url-empty states:

> If the value of the url() is the empty string (like url("") or url()), the url must resolve to an invalid resource (similar to what the url about:invalid does).

This contradicts CSS2, which states:

> In order to create modular style sheets that are not dependent on the absolute location of a resource, authors may use relative URIs. Relative URIs (as defined in [RFC3986]) are resolved to full URIs using a base URI. RFC 3986, section 5, defines the normative algorithm for this process. For CSS style sheets, the base URI is that of the style sheet, not that of the source document.

As an empty URL is a relative URI as defined by RFC3986, per CSS2 if the value of the url() is the empty string, then it must resolve to the URL of the style sheet.

This is observable both through the CSSOM and through use of content negotiation and polyglot documents.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2211 using your GitHub account
Received on Sunday, 21 January 2018 21:47:24 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:43 UTC