<?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>263104</bug_id>
          
          <creation_ts>2023-10-12 19:43:08 -0700</creation_ts>
          <short_desc>getComputedStyle() should return the same list than what was specified (truncation or excess)</short_desc>
          <delta_ts>2023-12-01 05:16:19 -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>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=263115</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=250702</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>261552</blocked>
    
    <blocked>263051</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>emilio</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1984797</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-10-12 19:43:08 -0700</bug_when>
    <thetext>getComputedStyle(elt).* should return the specified values for coordinating list properties.

.test {
    background-image: url(foo.ping);
    background-blend-mode: normal, luminosity;
    background-position: 0px 0px, 10px 10px;
}

let test = document.querySelector(&apos;.test&apos;);
window.getComputedStyle(test).backgroundBlendMode;
window.getComputedStyle(test).backgroundPosition;

should return (like Gecko)

normal, luminosity
0px 0px, 10px 10px

currently WebKit and Blink return

normal
0px 0px


Currently all the properties in 
https://searchfox.org/wubkat/rev/95664cfd77a025b5154b8fc6dd52a6cbd9c0f544/Source/WebCore/css/ComputedStyleExtractor.cpp
which have the patterns


        auto&amp; layers = style.backgroundLayers();
        if (!layers.next())
            return createConvertingToCSSValueID(layers.blendMode());
        CSSValueListBuilder list;
        for (auto* currLayer = &amp;layers; currLayer; currLayer = currLayer-&gt;next())
            list.append(createConvertingToCSSValueID(currLayer-&gt;blendMode()));
        return CSSValueList::createSpaceSeparated(WTFMove(list));


will not send back the list of values as specified and will stop if the number of images and the number of associated properties is different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984798</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-12 19:43:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/116897028&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984799</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-10-12 19:44:53 -0700</bug_when>
    <thetext>see Comment #13
https://bugs.webkit.org/show_bug.cgi?id=261552#c13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985025</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-10-13 16:52:19 -0700</bug_when>
    <thetext>This is happening for mask-image too.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>