<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>232919</bug_id>
          
          <creation_ts>2021-11-09 19:05:04 -0800</creation_ts>
          <short_desc>variable reference causes incorrect base URL to be applied to url() values</short_desc>
          <delta_ts>2021-11-10 15:04:31 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230243</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=232906</see_also>
          <bug_file_loc>https://mcc.id.au/temp/style-sheet-relative-image-var.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cameron McCormack (:heycam)">heycam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>marcos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1813452</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron McCormack (:heycam)">heycam</who>
    <bug_when>2021-11-09 19:05:04 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813721</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2021-11-10 11:30:19 -0800</bug_when>
    <thetext>Surprised that this is still wrong after the fix for bug 230243.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1813810</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2021-11-10 15:04:31 -0800</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>