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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/text/font-variant-width-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style type="text/css">
5 </style>
6 <style>
7 @font-face {
8 font-family: CSSHWOrientationTest;
9 src: url(../../resources/CSSHWOrientationTest.ttf) format("truetype");
10 }
11
12 html {
13 -webkit-writing-mode: vertical-rl;
14 text-rendering: geometricPrecision;
15 }
16
17 p {
18 font-family: "CSSHWOrientationTest";
19 font-size: 24px;
20 width: 24px;
21 height: 24px;
22 margin: 0;
23 padding: 0;
24 }
25
26 .combine {
27 -webkit-text-combine: horizontal;
28 font-size: 24px;
29 line-height: 100%;
30 margin: 0;
31 padding: 0px;
32 }
33
34
35 </style>
36 <script src="../../resources/testharness.js"></script>
37 <script src="../../resources/testharnessreport.js"></script>
38
39 <script type="text/javascript">
40 setup({ explicit_done: true });
41 function load() {
42 var spanElement = document.getElementById("variantCombine");
43 var theCSSprop_1 = document.querySelector('.combine').clientHe ight;
44
45 test(function() {
46 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
47 }, "Numbers exected to be laid out in one line");
48 }
49 </script>
50 </head>
51
52 <body onload="load(); done();">
53 <p id="variantCombine" class="combine">90</p>
54 <div id="log"></div>
55 </body>
56 </html>
OLDNEW
« 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