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

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

Issue 1025563002: Make body element background image use correct interpolation quality. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/css3/images/pixelated-background-image-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/images/pixelated-background-image.html
diff --git a/LayoutTests/css3/images/pixelated-background-image.html b/LayoutTests/css3/images/pixelated-background-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..056a4797b9aa3eec1d7c2af1f8f693a944b06ccc
--- /dev/null
+++ b/LayoutTests/css3/images/pixelated-background-image.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+ <style>
+ body {
+ padding: 0;
+ margin: 0;
+ width: 200px;
+ height: 200px;
+ image-rendering: pixelated;
+ }
+ div {
+ width: 100px;
+ height: 100px;
+ }
+ .image {
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIHWP4z8DwHwyBNJDN8B8AQNEG+t5Ik2kAAAAASUVORK5CYII=);
+ background-size: 50px;
+ }
+</style>
+<body class="image">
+ <!-- Both the body and div should have backgrounds consisting of solid color blocks with no blurring of edges. -->
+ <div class="image"></div>
+</body>
+<script>
+ // Ignore the render tree.
+ if (window.testRunner)
+ window.testRunner.dumpAsTextWithPixelResults();
+</script>
« no previous file with comments | « no previous file | LayoutTests/css3/images/pixelated-background-image-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698