[Webkit-unassigned] [Bug 200092] New: Relative urls in custom properties should resolve against the base URL of the stylesheet
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 24 11:26:27 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=200092
Bug ID: 200092
Summary: Relative urls in custom properties should resolve
against the base URL of the stylesheet
Product: WebKit
Version: Safari 12
Hardware: Macintosh
OS: macOS 10.14
Status: NEW
Severity: Minor
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bram at bramperry.com
Correctly resolve relative URLs for registered CSS custom properties.
Relative URLs in registered custom properties must resolve against the base URL of the originating stylesheet.
Currently they resolve against the base of the document.
For instance, consider a stylesheet at /style/mystyle.css:
--foo: url("myimage.jpg");
And a document at /index.html:
<style>
background-image: var(--foo);
</style>
If the property --foo is registered with syntax <url>, then the background-image should be /style/myimage.jpg.
This is contrary to non-registered properties, in which case the background-image would be /myimage.jpg.
This used to be a bug in Chromium too, but it has been fixed: https://bugs.chromium.org/p/chromium/issues/detail?id=851490
I've borrowed the description from that bug report, as it describes the issue clearly.
--
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/20190724/e84aca01/attachment.html>
More information about the webkit-unassigned
mailing list