<?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>196327</bug_id>
          
          <creation_ts>2019-03-27 16:51:23 -0700</creation_ts>
          <short_desc>@supports(background-attachment:fixed) should say false on iOS</short_desc>
          <delta_ts>2024-07-08 21:11:32 -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>WebKit Nightly Build</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=234779</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=275247</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, GoodFirstBug, 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="Nobody">webkit-unassigned</assigned_to>
          <cc>bramus</cc>
    
    <cc>gsnedders</cc>
    
    <cc>karlcow</cc>
    
    <cc>ntim</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zakr</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1521917</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-03-27 16:51:23 -0700</bug_when>
    <thetext>We don&apos;t support background-attachment:fixed on iOS, so @supports should reflect this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875543</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-13 10:14:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/95035888&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875547</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-06-13 10:22:53 -0700</bug_when>
    <thetext>Is this primarily just the fact that we should be gating support on FixedBackgroundsPaintRelativeToDocument?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875553</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-06-13 10:29:51 -0700</bug_when>
    <thetext>Hmm, we also seem to set FixedElementsLayoutRelativeToFrame on !IOS_FAMILY</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875566</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-06-13 10:56:45 -0700</bug_when>
    <thetext>`FixedBackgroundsPaintRelativeToDocument` is historical artifact from iOS originally not supporting `position:fixed` at all.

`We don&apos;t support background-attachment:fixed` is not supported on iOS because we didn&apos;t want scrolling to trigger a paint on every frame (and we&apos;d still prefer to avoid it). We also can&apos;t paint fixed backgrounds synchronously such that they accurately align with the scroll position, so even if we allow them to paint, they will jiggle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875633</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-06-13 15:25:16 -0700</bug_when>
    <thetext>So the conclusion having spoken to Simon offline is that yes, all that needs to be done is to gate the support (at the parser level, as we do for other conditional values) on FixedBackgroundsPaintRelativeToDocument.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974594</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-08-30 18:05:06 -0700</bug_when>
    <thetext>https://searchfox.org/wubkat/rev/015533966bd738b8d2392a8ff5f6c92f63ba1085/Source/WebCore/css/CSSProperties.json#1601

Needs to change to:
```
{
   &quot;value&quot;: &quot;fixed&quot;,
   &quot;settings-flag&quot;: &quot;fixedBackgroundsPaintRelativeToDocument&quot;
}
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974595</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-08-30 18:06:18 -0700</bug_when>
    <thetext>(In reply to Tim Nguyen (:ntim) from comment #6)
&gt; https://searchfox.org/wubkat/rev/015533966bd738b8d2392a8ff5f6c92f63ba1085/
&gt; Source/WebCore/css/CSSProperties.json#1601
&gt; 
&gt; Needs to change to:
&gt; ```
&gt; {
&gt;    &quot;value&quot;: &quot;fixed&quot;,
&gt;    &quot;settings-flag&quot;: &quot;fixedBackgroundsPaintRelativeToDocument&quot;
&gt; }
&gt; ```

Actually, that settings flag needs to be flipped to work. Alternatively, we would need a custom parser function</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2043332</commentid>
    <comment_count>8</comment_count>
    <who name="zak ridouh">zakr</who>
    <bug_when>2024-06-26 18:46:59 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30220</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>