4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <link rel=
"stylesheet" type=
"text/css" href=
"resources/text-scaling.css">
6 <script src=
"resources/text-scaling.js"></script>
7 <script src=
"../../../resources/js-test.js"></script>
11 <h1>Font Size Scaling (RTL, Arabic)
</h1>
13 Size of the text should scale smoothly.
14 Reported width should be within
0.02px of that of the highlighted reference row.
19 if (window
.testRunner
&& window
.testRunner
.setTextSubpixelPositioning
)
20 window
.testRunner
.setTextSubpixelPositioning(true);
22 var PANGRAM
= ' أبجد هوَّز حُطّي كلَمُن سَعْفَص قُرِشَت ثَخَدٌ ضَظَغ';
23 var results
= runTest(document
.getElementById('test'), PANGRAM
);
25 if (results
== PASS
) {
26 testPassed('Size of text scales smoothly and width scales with font size as expected.');
28 // Hide text if test passes as the actual numbers are
29 // different across platforms and would require platform
30 // specific baselines.
31 if (window
.testRunner
)
32 document
.getElementById('test').style
.display
= 'none';
34 testFailed('Size of text does not scale smoothly, reported widths highlighted in red do not match reference row.');