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

Unified Diff: LayoutTests/paint/images/image-backgrounds-not-antialiased.html

Issue 711163002: Don't anti-alias backgrounds of images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/paint/images/image-backgrounds-not-antialiased-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/paint/images/image-backgrounds-not-antialiased.html
diff --git a/LayoutTests/paint/images/image-backgrounds-not-antialiased.html b/LayoutTests/paint/images/image-backgrounds-not-antialiased.html
new file mode 100644
index 0000000000000000000000000000000000000000..cd6478d30e13860fb8f4a7d836bdb9ee77376bd6
--- /dev/null
+++ b/LayoutTests/paint/images/image-backgrounds-not-antialiased.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style type="text/css">
+.mi {
+background-color: #f00; /* Just makes the bug visible. */
+margin-top: 1px; /* Precondition for bug. */
+width: 395px; /* Not important. */
+height: 296px; /* Not important. */
enne (OOO) 2014/11/11 18:13:15 Why is this not important? If you change the devic
+}
+</style>
+
+<!-- With an anti-aliased background, this image will show a row of red pixels at the top at
+device pixel ration 3.5. To fix this, we turn off anti-aliasing for image backgrounds.
+ -->
+ <img class="mi" id="target" src="../../http/tests/resources/square20.jpg"> -->
+
+<script>
+window.onload = function () {
+ if (window.internals && window.testRunner)
+ testRunner.setBackingScaleFactor(3.7, finishTest);
+}
+
+function finishTest() {
+ if (window.testRunner)
+ window.testRunner.notifyDone();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/paint/images/image-backgrounds-not-antialiased-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698