<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - position:fixed and background-color lead to painting artifacts on non-retina displays"
   href="https://bugs.webkit.org/show_bug.cgi?id=156817">156817</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>position:fixed and background-color lead to painting artifacts on non-retina displays
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Layout and Rendering
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kneebraces22&#64;gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>simon.fraser&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This bug is a little finicky and doesn't manifest consistently. However, the setup in this JSFiddle (<a href="https://jsfiddle.net/Lcu6Lrv9/7/">https://jsfiddle.net/Lcu6Lrv9/7/</a>) seems to reproduce it fairly reliably. 

We have three dom elements: a container which is styled with 'position: fixed', a box with a background color, and a div with a background image that is scaled / positioned to be centered within our box. Often the background color of the box element that is *outside* of the bounding box of the image is colored incorrectly. The incorrect color seems to be a function of the original background color (e.g if our background color is blue the buggy color is orange). I've reproduced this using a background-image, an &lt;img&gt; tag, and with an inline SVG (though it seems to happen most consistently with the setup above.) I have also reproduced this bug with PNGs and SVGs so I don't think it's related to the image type. The most important aspect seems to be that the top level container element has 'positioned: fixed'.

This bug *only* manifests on non-retina displays. I have never reproduced it on a retina display. Usually opening the inspector or dragging the window around or anything that might cause a repaint causes the weird background color to fix itself.

The only workaround I have found so far is to use a pre-scaled image that is larger that the box element with transparent background, rather than scaling the image with CSS.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>