Bug 232919 - variable reference causes incorrect base URL to be applied to url() values
Summary: variable reference causes incorrect base URL to be applied to url() values
Status: RESOLVED DUPLICATE of bug 230243
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://mcc.id.au/temp/style-sheet-re...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-09 19:05 PST by Cameron McCormack (:heycam)
Modified: 2021-11-10 15:04 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack (:heycam) 2021-11-09 19:05:04 PST
STR:

1. Open https://mcc.id.au/temp/style-sheet-relative-image-var.html.
2. Result should be green, not red.

The presence of the var() reference in the background-image declaration causes the previous url() to be resolved against the document URL, and not the style sheet URL.
Comment 1 Darin Adler 2021-11-10 11:30:19 PST
Surprised that this is still wrong after the fix for bug 230243.
Comment 2 Darin Adler 2021-11-10 15:04:31 PST
It’s not wrong. This is a duplicate of bug 230243 and already fixed on TOT.

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