<?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>229909</bug_id>
          
          <creation_ts>2021-09-03 19:25:17 -0700</creation_ts>
          <short_desc>-webkit-image-set() should be an alias of image-set()</short_desc>
          <delta_ts>2023-02-27 08:14:25 -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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=206909</see_also>
    
    <see_also>https://github.com/web-platform-tests/wpt/pull/38394</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=251811</see_also>
          <bug_file_loc>https://wpt.fyi/results/css/css-images/image-set/image-set-parsing.html?label=master&amp;label=experimental&amp;product=chrome&amp;product=firefox&amp;product=safari&amp;aligned&amp;view=interop&amp;q=label%3Ainterop-2023-webcompat</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>203788</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Ryan Reno">rreno</assigned_to>
          <cc>karlcow</cc>
    
    <cc>rreno</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1790466</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-09-03 19:25:17 -0700</bug_when>
    <thetext>Per https://github.com/w3c/csswg-drafts/issues/6285, it was decided to make -webkit-image-set a parse-time alias.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792639</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-10 19:26:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/82999675&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799277</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-10-01 06:52:20 -0700</bug_when>
    <thetext>per bug 206909 we did actually briefly do this, but this then got reverted due to Gmail breakage, gonna file a new bug for fixing the underlying issue there and mark this as blocked on that</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909280</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-10-31 04:05:51 -0700</bug_when>
    <thetext>The prior Gmail issue no longer seems to trivially reproduce, as empty URLs in image-set no longer cause a broken image icon to be shown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928542</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-26 00:13:10 -0800</bug_when>
    <thetext>Not sure why some of these tests are failing 
http://wpt.live/css/css-images/image-set/image-set-parsing.html

But manually it is working. 

&gt; document.body.style.backgroundImage
&lt; &quot;&quot;
&gt; document.body.style[&apos;background-image&apos;]
&lt; &quot;&quot;
&gt; document.body.style.backgroundImage = &quot;-webkit-image-set(url(&apos;example.png&apos;) 1x)&quot;
&lt; &quot;-webkit-image-set(url(&apos;example.png&apos;) 1x)&quot;
&gt; document.body.style.backgroundImage
&lt; &quot;image-set(url(\&quot;example.png\&quot;) 1x)&quot;
&gt; document.body.style[&apos;background-image&apos;]
&lt; &quot;image-set(url(\&quot;example.png\&quot;) 1x)&quot;
&gt; document.body.style.getPropertyValue(&quot;background-image&quot;)
&lt; &quot;image-set(url(\&quot;example.png\&quot;) 1x)&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928543</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-26 00:14:07 -0800</bug_when>
    <thetext>Probably necessary for Interop2023.

Note that -webkit-image-set() is already an alias of image-set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929360</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-01-30 04:31:14 -0800</bug_when>
    <thetext>It sorta is and sorta isn&apos;t. It still has its own parser: https://github.com/WebKit/WebKit/blob/1e76207c4357149a69994b53bb756f31996c13df/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp#L4666</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929361</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-30 04:41:32 -0800</bug_when>
    <thetext>Ah thanks for the link, Sam. 
I need to dig into this for understanding the differences.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931515</commentid>
    <comment_count>8</comment_count>
    <who name="Ryan Reno">rreno</who>
    <bug_when>2023-02-06 15:04:17 -0800</bug_when>
    <thetext>I can&apos;t reproduce the gmail issue with this simple diff:

diff --git a/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp b/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
index 173d2397e7c4..5c836404e9ba 100644
--- a/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
+++ b/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
@@ -4672,10 +4672,8 @@ RefPtr&lt;CSSValue&gt; consumeImage(CSSParserTokenRange&amp; range, const CSSParserContext
             return consumeGeneratedImage(range, context);
 
         if (allowedImageTypes.contains(AllowedImageType::ImageSet)) {
-            if (functionId == CSSValueImageSet)
+            if (functionId == CSSValueImageSet || functionId == CSSValueWebkitImageSet)
                 return consumeImageSet(range, context, (allowedImageTypes | AllowedImageType::RawStringAsURL) - AllowedImageType::ImageSet);
-            if (functionId == CSSValueWebkitImageSet)
-                return consumeImageSet(range, context, AllowedImageType::URLFunction);
         }
     }

But that diff does progress some of the WPT subtests we are currently failing because we don&apos;t implement -webkit-image-set as an alias.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931521</commentid>
    <comment_count>9</comment_count>
    <who name="Ryan Reno">rreno</who>
    <bug_when>2023-02-06 15:21:02 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9718</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931778</commentid>
    <comment_count>10</comment_count>
    <who name="Ryan Reno">rreno</who>
    <bug_when>2023-02-07 11:20:39 -0800</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/38394</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931937</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-07 22:50:51 -0800</bug_when>
    <thetext>Committed 259994@main (5e38273c02f7): &lt;https://commits.webkit.org/259994@main&gt;

Reviewed commits have been landed. Closing PR #9718 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>