When an empty string is passed to CSS url() function the value within url() is replaced with location.href
Reported by
guest271...@gmail.com,
Jan 21 2018
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/63.0.3239.84 Chrome/63.0.3239.84 Safari/537.36 Steps to reproduce the problem: 1. Set an empty string at CSS url() function 2. 3. What is the expected behavior? 3.4.2. Empty URLs https://drafts.csswg.org/css-values-3/#url-empty 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). What went wrong? The empty string is replaced with location.href Did this work before? N/A Does this work in other browsers? No The same behaviour Chrome version: 63.0.3239.84 Channel: n/a OS Version: Flash Version:
,
Jan 22 2018
,
Jan 23 2018
Blink, WebKit and Firefox are consistent with each other. Edge is consistent with spec.
,
Feb 16 2018
Spec issue: https://github.com/w3c/csswg-drafts/issues/2211. Looks like it was resolved to revert the change for now (so Chrome would have the correct behavior).
,
Apr 29 2018
Marking this WontFix since it looks like the spec will (eventually) be changed to support our behavior. Test already landed at https://github.com/w3c/web-platform-tests/blob/master/css/css-values/urls/empty.html. |
||||
►
Sign in to add a comment |
||||
Comment 1 by guest271...@gmail.com
, Jan 21 2018