Bug 217124

Summary: Using both CSS variable and url() in background shorthand changes the url path to root instead of relative
Product: WebKit Reporter: JC Simpson <bugzilla>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bugzilla, koivisto, simon.fraser
Priority: P2    
Version: Safari 14   
Hardware: Mac   
OS: macOS 10.15   
URL: https://testcase.mangoweb.net/background-shorthand-vs-var/index
Attachments:
Description Flags
reduced css testcase none

Description JC Simpson 2020-09-30 04:23:42 PDT
Created attachment 410106 [details]
reduced css testcase

When using both a css var and an url() in a background shorthand declaration the url is changed, apparently to the root domain instead of staying relative to the css stylesheet file as expected.

https://testcase.mangoweb.net/background-shorthand-vs-var/index
Comment 1 Alexey Proskuryakov 2020-10-01 12:45:54 PDT
Duplicate of bug 198512?
Comment 2 JC Simpson 2020-10-01 23:39:53 PDT
Yes, looks like it’s the same issue, sorry for the duplicate.
Comment 3 JC Simpson 2020-10-01 23:40:42 PDT

*** This bug has been marked as a duplicate of bug 198512 ***