blob: 0547d402d91622654afa32c71b994d37cf30e6c9 [file] [log] [blame]
<!DOCTYPE html>
<style type="text/css">
.mi {
margin-top: 1px; /* Precondition for bug. */
width: 5px; /* Not important. */
height: 6px; /* Not important. */
With an anti-aliased background, this image will show a row of red pixels at the top at
device pixel ration 3.5. To fix this, we turn off anti-aliasing for image backgrounds.
<img class="mi" id="target" src="../../http/tests/resources/square20.jpg">
window.onload = function () {
if (window.internals && window.testRunner)
testRunner.setBackingScaleFactor(3.5, finishTest);
function finishTest() {
if (window.testRunner)