New issue
Advanced search Search tips

Issue 804170 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

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 description

UserAgent: 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:
 
test-empty-string-at-css-url-function.html
618 bytes View Download
Components: Blink>CSS
Labels: Hotlist-Interop
Status: Available (was: Unconfirmed)
Blink, WebKit and Firefox are consistent with each other.
Edge is consistent with spec.

Comment 4 by cnardi@chromium.org, 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).

Comment 5 by cnardi@chromium.org, Apr 29 2018

Status: WontFix (was: Available)
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.

Comment 6 Deleted

Comment 7 Deleted

Sign in to add a comment