Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: LayoutTests/css3/images/pixelated-downscaled-expected.html

Issue 754083003: Make image-rendering:pixelated use nearest neighbor when downscaling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Sync and rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/css3/images/pixelated-downscaled-expected.html
diff --git a/LayoutTests/css3/images/pixelated-downscaled-expected.html b/LayoutTests/css3/images/pixelated-downscaled-expected.html
deleted file mode 100644
index de3a11e02d920141592e3b5fbd19bd174d763dd0..0000000000000000000000000000000000000000
--- a/LayoutTests/css3/images/pixelated-downscaled-expected.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<style>
- canvas {
- width: 100px;
- height: 100px;
- image-rendering: auto;
- }
- img {
- width: 100px;
- height: 100px;
- image-rendering: auto;
- }
- svg {
- width: 100px;
- height: 100px;
- }
- image {
- image-rendering: auto;
- }
-</style>
-<body>
- <!-- Since all images are being downscaled, this should look the same with and without "image-rendering: pixelated" -->
- <canvas width="512" height="512"></canvas>
- <img onload="drawImageToCanvas()" src="resources/radial-lines.png">
- <svg><image width="100" height="100" xlink:href="resources/radial-lines.png"/></svg>
-</body>
-<script>
- // Ignore the render tree.
- if (window.testRunner)
- window.testRunner.dumpAsTextWithPixelResults();
-
- function drawImageToCanvas() {
- var image = document.getElementsByTagName("img")[0];
- var canvas = document.getElementsByTagName("canvas")[0].getContext("2d");
- canvas.drawImage(image, 0, 0);
- }
-</script>
« no previous file with comments | « LayoutTests/css3/images/pixelated-downscaled.html ('k') | LayoutTests/css3/images/resources/radial-lines.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698