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

Unified Diff: LayoutTests/fast/text/font-variant-width.html

Issue 263363005: Initial patch for FontVariant, variant like HalfWidth should take Complex Path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@emoji_android
Patch Set: Updated test case Created 6 years, 7 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/fast/text/font-variant-width-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/font-variant-width.html
diff --git a/LayoutTests/fast/text/font-variant-width.html b/LayoutTests/fast/text/font-variant-width.html
new file mode 100644
index 0000000000000000000000000000000000000000..e836c6236508a013c31f4cf4e1fd7d36adc3244e
--- /dev/null
+++ b/LayoutTests/fast/text/font-variant-width.html
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <style type="text/css">
+ </style>
+ <style>
+@font-face {
+ font-family: CSSHWOrientationTest;
+ src: url(../../resources/CSSHWOrientationTest.ttf) format("truetype");
+}
+
+html {
+ -webkit-writing-mode: vertical-rl;
+ text-rendering: geometricPrecision;
+}
+
+p {
+ font-family: "CSSHWOrientationTest";
+ font-size: 24px;
+ width: 24px;
+ height: 24px;
+ margin: 0;
+ padding: 0;
+}
+
+.combine {
+ -webkit-text-combine: horizontal;
+ font-size: 24px;
+ line-height: 100%;
+ margin: 0;
+ padding: 0px;
+}
+
+
+</style>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+
+ <script type="text/javascript">
+ setup({ explicit_done: true });
+ function load() {
+ var spanElement = document.getElementById("variantCombine");
+ var theCSSprop_1 = document.querySelector('.combine').clientHeight;
+
+ test(function() {
+ assert_true(( (theCSSprop_1 >= 24) && (theCSSprop_1 < (2 * 24))), "Numbers laid out in one line.");
Dominik Röttsches 2014/05/15 13:29:25 Why >=24? The condition should be 24, right? You'r
h.joshi 2014/05/19 12:45:36 Thank you for notifying this, will make changes to
+ }, "Numbers exected to be laid out in one line");
+ }
+ </script>
+</head>
+
+<body onload="load(); done();">
+ <p id="variantCombine" class="combine">90</p>
+ <div id="log"></div>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/text/font-variant-width-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698