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

Side by Side Diff: LayoutTests/fast/text/fontWidthVariant.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: Adding test case based on testharness.js 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/resources/CSSHWOrientationTest.ttf » ('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>
Dominik Röttsches 2014/05/13 08:45:34 Please change the file name to be consistent with
2 <meta charset="utf-8">
3 <html>
4 <head>
5 <style type="text/css" id="styleElement">
6 </style>
7 <style>
8 @font-face {
9 font-family: CSSHWOrientationTest;
10 src: url(../../resources/CSSHWOrientationTest.ttf) format("truetype");
Dominik Röttsches 2014/05/13 08:45:34 Please take a look at LayoutTests/third_party/Libe
11 }
12
13 html {
14 -webkit-writing-mode: vertical-rl;
15 text-rendering: geometricPrecision;
16 }
17
18 p {
19 font-family: "CSSHWOrientationTest", sans;
20 font-size: 24px;
21 }
22
23 .combine {
24 -webkit-text-combine: horizontal;
25 }
26
27 </style>
28 <script src="../../resources/testharness.js"></script>
29 <script src="../../resources/testharnessreport.js"></script>
30 <script type="text/javascript">
31 setup({ "explicit_done": true });
32 function updateQuery() {
Dominik Röttsches 2014/05/13 08:45:34 Why "updateQuery()?" - Please think about better n
33 var styleElement = document.getElementById("styleElement");
34 var spanElement = document.getElementById("variantCombine");
35
36 var theCSSprop_1 = spanElement.offsetHeight;
Dominik Röttsches 2014/05/13 08:45:34 Please clean up code before uploading to make it e
37 //alert(theCSSprop_1);
38
39 // Apply class having webkit-text-combine property
40 document.getElementById('variantCombine').className = 'combine';
41
42 var theCSSprop_2 = spanElement.offsetHeight;
43 //alert(theCSSprop_2);
44
45 test(function() {
46 assert_true(theCSSprop_2 < theCSSprop_1,
47 "New query doesn't match, property not applied.")
Dominik Röttsches 2014/05/13 08:45:34 Needs a better assert failure description. The pro
48 },
49 "Testing that webkit-text-combine is appplied");
50
51 // reset class
52 spanElement.className = "";
53 }
54 </script>
55 </head>
56
57 <body onload="updateQuery(); done();">
58 <span>This test verifies that webkit-text-combin is applied.</span>
Dominik Röttsches 2014/05/13 08:45:34 Please spell the CSS property correctly, including
59 <div id="log"></div>
60 <p>
61 文字<span id="variantCombine">90</span>年
Dominik Röttsches 2014/05/13 08:45:34 Do we need the filler text before and after the "9
62 </p>
63 </body>
64 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/resources/CSSHWOrientationTest.ttf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698