New issue
Advanced search Search tips

Issue 661007 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 661854
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug

Blocked on:
issue 661854



Sign in to add a comment

URL value in CSS Custom Property is incorrectly escaped when serialized or substituted

Reported by quanxunz...@gmail.com, Nov 1 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0

Steps to reproduce the problem:
Open the test case.

What is the expected behavior?
It should show something like:
> --image: url(test.svg#a)
> background: url(test.svg#b) var(--color)

What went wrong?
The urls inside are incorrectly escaped:
--image: url(test\.svg\#a)
background: url(test\.svg\#b) var(--color)

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 56.0.2905.0 (正式版本) canary (64 位)  Channel: canary
OS Version: OS X 10.12
Flash Version: Shockwave Flash 23.0 r0
 
test.html
412 bytes View Download
Cc: nyerramilli@chromium.org
Components: Blink>SVG
Labels: M-56 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Thanks for the report.

Able to reproduce the issue on Win 10, Mac OS X 10.11.6, Ubuntu 14.04 using Chrome Canary #56.02905.0, Dev 56.0.2902.0, Beta 55.0.2883.28 and Stable 54.0.2840.71

This is non-regression issue, issue existing from 50.0.2624.0, prior to M50 builds it is showing blank page.

Working fine in FF 49.0.2

I'm pretty sure it is not an issue with SVG, but an issue on your CSS component. Replacing the url with test.png wouldn't change the behavior.

Comment 3 by f...@opera.com, Nov 1 2016

Components: -Blink>SVG Blink>CSS

Comment 4 by shans@chromium.org, Nov 1 2016

Summary: URL value in CSS Custom Property is incorrectly escaped when serialized or substituted (was: URL value from CSSOM is incorrectly escaped for variable and property with variable)

Comment 5 by shans@chromium.org, Nov 1 2016

Owner: timloh@chromium.org
Status: Available (was: Untriaged)
Blockedon: 661854
Mergedinto: 661854
Status: Duplicate (was: Available)
Actually I'm just gonna dupe this against 661854, this will be resolved when that is fixed.

Sign in to add a comment