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

Unified Diff: LayoutTests/css3/images/pixelated-downscaled.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
« no previous file with comments | « no previous file | LayoutTests/css3/images/pixelated-downscaled-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/images/pixelated-downscaled.html
diff --git a/LayoutTests/css3/images/pixelated-downscaled.html b/LayoutTests/css3/images/pixelated-downscaled.html
deleted file mode 100644
index b6ad772cc76f84db76beafe475ab2ac6ec52d568..0000000000000000000000000000000000000000
--- a/LayoutTests/css3/images/pixelated-downscaled.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<style>
- canvas {
- width: 100px;
- height: 100px;
- image-rendering: pixelated;
- }
- img {
- width: 100px;
- height: 100px;
- image-rendering: pixelated;
- }
- svg {
- width: 100px;
- height: 100px;
- }
- image {
- image-rendering: pixelated;
- }
-</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 | « no previous file | LayoutTests/css3/images/pixelated-downscaled-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698