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

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