<?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>243915</bug_id>
          
          <creation_ts>2022-08-12 20:17:04 -0700</creation_ts>
          <short_desc>`background-repeat` is incorrectly exposed through inline style</short_desc>
          <delta_ts>2023-12-17 04:09:41 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>clshortfuse</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1891074</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-12 20:17:04 -0700</bug_when>
    <thetext>This testcase fails in WebKit:

    &lt;div id=&quot;target&quot; style=&quot;background-repeat: no-repeat;&quot;&gt;&lt;/div&gt;
    &lt;script&gt;
        let target = document.getElementById(&apos;target&apos;);
        target.textContent = target.style.length + &apos; rules&apos;;
    &lt;/script&gt;

reporting `0 rules`. Other browsers correctly find one rule.

This causes failures on https://css3test.com which uses this technique to detect support for style properties.

The bug relates to how webkit expands `background-repeat` to `background-repeat-x` and `background-repeat-y`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891076</commentid>
    <comment_count>1</comment_count>
      <attachid>461569</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-12 20:21:13 -0700</bug_when>
    <thetext>Created attachment 461569
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891077</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-12 20:26:18 -0700</bug_when>
    <thetext>`PropertySetCSSStyleDeclaration::length()` is really API, so to fix this we&apos;d either have to recompute the length by collapsing longhands, or not expand `background-repeat` to `background-repeat-x` and `background-repeat-y`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891078</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-12 20:42:25 -0700</bug_when>
    <thetext>Maybe we could stop pretending that `background-repeat` is a shorthand.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891186</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-13 17:21:48 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3292</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891454</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-15 15:04:09 -0700</bug_when>
    <thetext>Committed 253440@main (165b098dbd0b): &lt;https://commits.webkit.org/253440@main&gt;

Reviewed commits have been landed. Closing PR #3292 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891455</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-15 15:05:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/98690270&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000265</commentid>
    <comment_count>7</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-12-17 04:09:41 -0800</bug_when>
    <thetext>*** Bug 252403 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>461569</attachid>
            <date>2022-08-12 20:21:13 -0700</date>
            <delta_ts>2022-08-12 20:21:13 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>background-repeat-computed.html</filename>
            <type>text/html</type>
            <size>485</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8c3R5bGU+CiAgICAuYm94IHsKICAgICAgICB3aWR0aDog
MTAwcHg7CiAgICAgICAgaGVpZ2h0OiAxMDBweDsKICAgICAgICBiYWNrZ3JvdW5kLWltYWdlOiBs
aW5lYXItZ3JhZGllbnQoc2lsdmVyLCB5ZWxsb3cpOwogICAgICAgIGJhY2tncm91bmQtc2l6ZTog
MjBweCAyMHB4OwogICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOwogICAgfQogICAgCjwv
c3R5bGU+Cjxib2R5PgogICAgPGRpdiBpZD0idGFyZ2V0IiBjbGFzcz0iYm94IiBzdHlsZT0iYmFj
a2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDsiPgogICAgPC9kaXY+CiAgICA8c2NyaXB0PgogICAg
ICAgIGxldCB0YXJnZXQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgndGFyZ2V0Jyk7CiAgICAg
ICAgdGFyZ2V0LnRleHRDb250ZW50ID0gdGFyZ2V0LnN0eWxlLmxlbmd0aCArICcgcnVsZXMnOwog
ICAgPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>