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

Unified Diff: LayoutTests/css3/images/pixelated-svg-image.html

Issue 336693005: Add image-rendering: pixelated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't add 'pixelated' to devtools. Created 6 years, 6 months 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-svg-image.html
diff --git a/LayoutTests/css3/images/pixelated-svg-image.html b/LayoutTests/css3/images/pixelated-svg-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..ba29c841d58cda435df4591264af8924697d328a
--- /dev/null
+++ b/LayoutTests/css3/images/pixelated-svg-image.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+ <style>
+ image {
+ image-rendering: pixelated;
+ }
+</style>
+<body>
+ <!-- The resulting image should be 100x100, consisting of 4 50x50 blocks of solid color, with no blurring of edges -->
+ <svg><image width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIHWP4z8DwHwyBNJDN8B8AQNEG+t5Ik2kAAAAASUVORK5CYII="/></svg>
+</body>
+<script>
+ // Ignore the render tree.
+ if (window.testRunner)
+ window.testRunner.dumpAsTextWithPixelResults();
+</script>
« no previous file with comments | « LayoutTests/css3/images/pixelated-image-expected.txt ('k') | LayoutTests/css3/images/pixelated-svg-image-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698