<?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>230222</bug_id>
          
          <creation_ts>2021-09-13 09:55:42 -0700</creation_ts>
          <short_desc>image-rendering:pixelated is broken by position:fixed</short_desc>
          <delta_ts>2022-10-31 11:24:26 -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>Compositing</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Pierre Carrier">pc</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>kevin_neal</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1792980</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Carrier">pc</who>
    <bug_when>2021-09-13 09:55:42 -0700</bug_when>
    <thetext>Reproduced with Safari 15 on Monterey 12.0 Beta (21A5304g) and WebKit r282325.

For example, the QR code on the right is blurry @ https://pcarrier.com/toys/safari.html reproduced here:
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body style=&quot;margin:0;padding:0&quot;&gt;
&lt;img src=&quot;data:image/webp;base64,UklGRoQAAABXRUJQVlA4THgAAAAvHAAHAA/wkf+P/H/kf/7jAU5s21qWH3fXdF+lfcMgU/lngtZfMpaoVmma/ev/JHCX12AKEf0PZqbfkawdO/UFYZkQfhNiYGA3fiLSs4O7X5IFSfXMleTigPk6TlTOg6UHkVyHdkOdRHEGUWqQsFTszBEimiRm/gM&quot; style=&quot;image-rendering:pixelated;height:200px;width:200px;position:fixed;right:0&quot;/&gt;
&lt;img src=&quot;data:image/webp;base64,UklGRoQAAABXRUJQVlA4THgAAAAvHAAHAA/wkf+P/H/kf/7jAU5s21qWH3fXdF+lfcMgU/lngtZfMpaoVmma/ev/JHCX12AKEf0PZqbfkawdO/UFYZkQfhNiYGA3fiLSs4O7X5IFSfXMleTigPk6TlTOg6UHkVyHdkOdRHEGUWqQsFTszBEimiRm/gM&quot; style=&quot;image-rendering:pixelated;height:200px;width:200px&quot;/&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793063</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-09-13 13:27:50 -0700</bug_when>
    <thetext>This is because we put the image into a composited layer when fixed, so it doesn&apos;t get painted and therefore doesn&apos;t get pixelated.

You could work around this by adding border style to the image (even a transparent border).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793170</commentid>
    <comment_count>2</comment_count>
    <who name="Pierre Carrier">pc</who>
    <bug_when>2021-09-13 17:53:57 -0700</bug_when>
    <thetext>The original occurence, on https://pcarrier.com, was an img which did have a border-radius but no border; not that it matters to this issue, but I solved by wrapping in a div like so:

&lt;div style=&quot;position:fixed;right:0;top:0&quot;&gt;
&lt;img src=&quot;data:image/webp;base64,UklGRoQAAABXRUJQVlA4THgAAAAvHAAHAA/wkf+P/H/kf/7jAU5s21qWH3fXdF+lfcMgU/lngtZfMpaoVmma/ev/JHCX12AKEf0PZqbfkawdO/UFYZkQfhNiYGA3fiLSs4O7X5IFSfXMleTigPk6TlTOg6UHkVyHdkOdRHEGUWqQsFTszBEimiRm/gM&quot; style=&quot;image-rendering:pixelated;z-index:1;height:8vw;width:8vw;border-radius:0 0 0 10%;cursor:zoom-in&quot; alt=&quot;Self-reference as a QR code&quot; onClick=&quot;if (!window.__cfRLUnblockHandlers) return false; var s=this.style;if(s.cursor===&apos;zoom-in&apos;){s.height=s.width=&apos;50vw&apos;;s.cursor=&apos;zoom-out&apos;}else{s.height=s.width=&apos;8vw&apos;;s.cursor=&apos;zoom-in&apos;}&quot; data-cf-modified-fe7134a6dcdb2858250c1d29-=&quot;&quot; /&gt;
&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793703</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-15 08:01:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/83150855&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>