Files
sousa-gecko/testing/web-platform/tests/css/css-backgrounds/background-repeat-space-9.html
T
Yi Xu a0e0ac6199 Bug 1923521 [wpt PR 48529] - Update the sampling option for imageFilterQuality set to Medium or High, a=testonly
Automatic update from web-platform-tests
Update the sampling option for imageFilterQuality set to Medium or High

Currently, we are using bi-cubic sampling method, CatmullRom(), when
filter quality is set to High; and using linear sampling when the
quality is set to medium.

However, the bicubic sampling under perform than the linear sampling
when the image is scaled down: https://fiddle.skia.org/c/9822e1bbf3e6e69498fe9a3e86ef49f3 (bicubic)
and https://fiddle.skia.org/c/2b9f1057f9437710a993844fc1b015e2 (linear).

In this cl, I updated the sampling method respected to the image scale,
i.e., uses Mitchell for scaling up and linear for scaling down for both
medium and high quality.

I choose Mitchell over CatmullRom because Mitchell produces less Ringing
around color change.

Bug: 40044062
Change-Id: Iae6df006a5153b0c31959d3767a9e0f782b7d5a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5806239
Commit-Queue: Yi Xu <yiyix@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1366572}

--

wpt-commits: 862d21cede6fcbc851b87245157d4a502c5f3243
wpt-pr: 48529
2024-10-11 15:08:25 +00:00

27 lines
917 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Background: background-repeat: background image space</title>
<link rel="author" title="Ethan Lin" href="mailto:ethlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="help" href="https://www.w3.org/TR/css3-background/#background-repeat">
<link rel="match" href="background-repeat-space-9-ref.html">
<meta name="assert" content="Test checks whether background-repeat: 'space' works correctly or not.">
<meta name="fuzzy" content="maxDifference=0-52; totalPixels=0-1680">
<style type="text/css">
.outer {
width: 106px;
height: 96px;
border: 1px solid black;
background-image: url(support/aqua-yellow-32x32.png);
background-repeat: space;
}
</style>
</head>
<body>
<div class="outer"></div>
</body>
</html>