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

Unified Diff: LayoutTests/fast/text/sub-pixel/text-scaling-pixel.html

Issue 25512005: Enable experimental support for sub-pixel font scaling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: LayoutTests/fast/text/sub-pixel/text-scaling-pixel.html
diff --git a/LayoutTests/fast/text/sub-pixel/text-scaling-pixel.html b/LayoutTests/fast/text/sub-pixel/text-scaling-pixel.html
new file mode 100644
index 0000000000000000000000000000000000000000..44e8d895f825fb5c47eb4d173e9e5a1aa8dda3bd
--- /dev/null
+++ b/LayoutTests/fast/text/sub-pixel/text-scaling-pixel.html
@@ -0,0 +1,25 @@
+<!DOCTYPE>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <link rel="stylesheet" type="text/css" href="resources/text-scaling.css">
+ <script src="resources/text-scaling.js"></script>
+ </head>
+ <body>
+ <section>
+ <h1>Font Size Scaling Pixel Test</h1>
+ <p>
+ Size of the text should scale smoothly.
+ Reported width should be within 0.01px of that of the highlighted reference row.
+ </p>
+ <div id="test"></div>
+ </section>
+ <script>
+ if (window.testRunner && window.testRunner.setTextSubpixelPositioning)
+ window.testRunner.setTextSubpixelPositioning(true);
+
+ var PANGRAM = 'Amazingly few discotheques provide jukeboxes.';
+ runTest(document.getElementById('test'), PANGRAM);
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/fast/text/sub-pixel/text-scaling-ltr-expected.txt ('k') | LayoutTests/fast/text/sub-pixel/text-scaling-rtl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698