Chromium Code Reviews| 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> |