<?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>191696</bug_id>
          
          <creation_ts>2018-11-15 09:14:43 -0800</creation_ts>
          <short_desc>Getting the inferred background-repeat-[xy] values returns the shorthand background-repeat value</short_desc>
          <delta_ts>2022-07-01 16:28:01 -0700</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 12</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></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="Ben Dean">bendean837</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1478940</commentid>
    <comment_count>0</comment_count>
      <attachid>354945</attachid>
    <who name="Ben Dean">bendean837</who>
    <bug_when>2018-11-15 09:14:43 -0800</bug_when>
    <thetext>Created attachment 354945
Illustration / reproduction

I can reproduce this bug on Chrome as well as Safari -- though not Firefox, which doesn&apos;t seem to support background-repeat-x or background-repeat-y.

Code to reproduce:
&gt; var div = document.createElement(&quot;div&quot;);
&gt; div.style = &quot;background-repeat: no-repeat, repeat&quot;;
&gt; console.log(div.style.backgroundRepeatX);
&gt; console.log(div.style.backgroundRepeatY);

Expected
&gt; &quot;no-repeat&quot;
&gt; &quot;repeat&quot;

Actual:
&gt; &quot;no-repeat, repeat&quot;
&gt; &quot;no-repeat, repeat&quot;

Also see the attached html file.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1478945</commentid>
    <comment_count>1</comment_count>
    <who name="Ben Dean">bendean837</who>
    <bug_when>2018-11-15 09:22:36 -0800</bug_when>
    <thetext>This bug is tracked for Chrome at http://crbug.com/905707</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880261</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-01 16:28:01 -0700</bug_when>
    <thetext>Chrome closed their bug in 2020 as Behaves Correctly:

&quot;&quot;&quot;
it is wrong usage to add &quot;,&quot; between two values.

according to spec, 
&lt;repeat-style&gt; = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}
https://drafts.csswg.org/css-backgrounds-3/#background-repeat.
so i think it should be like below 
div.style = &quot;background-repeat: no-repeat repeat&quot;; // without comma
&quot;&quot;&quot;

So we will take the same approach.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>354945</attachid>
            <date>2018-11-15 09:14:43 -0800</date>
            <delta_ts>2018-11-15 09:14:43 -0800</delta_ts>
            <desc>Illustration / reproduction</desc>
            <filename>background-repeat-bug.html</filename>
            <type>text/html</type>
            <size>1069</size>
            <attacher name="Ben Dean">bendean837</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPjwvaGVhZD4KICA8Ym9keSBzdHlsZT0ibWF4
LXdpZHRoOiA2MDBweCI+Ck9uIENocm9tZSBhbmQgU2FmYXJpLCBidXQgbm90IEZpcmVmb3gsIHRo
ZSA8Y29kZT5iYWNrZ3JvdW5kLXJlcGVhdC14PC9jb2RlPiBhbmQgPGNvZGU+YmFja2dyb3VuZC1y
ZXBlYXQteTwvY29kZT4gQ1NTT00gdmFsdW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