[Webkit-unassigned] [Bug 190807] CSS variables with url() don't use correct base URL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 7 07:50:59 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=190807

Chris Burgin <chris.burgin at agilebits.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chris.burgin at agilebits.com

--- Comment #2 from Chris Burgin <chris.burgin at agilebits.com> ---
I am also having this problem. It seems to be present if a `var` is present anywhere in `background`. Causing it to look at the document not the relative url as specified below.

> https://www.w3.org/TR/CSS1/ 6.4 "Partial URLs are interpreted relative to the source of the style sheet, not relative to the document".


background: url(../images/chevron-down-faded-0845b94284a0a5a42493e703d7ab4a8b.svg) no-repeat center,linear-gradient(to bottom, var(--color-white) 53%, #e2e2e2 98%)


If I replace `var(--color-white)` with `#fff` the image is loaded correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200407/432f036c/attachment-0001.htm>


More information about the webkit-unassigned mailing list