-apple-system-font-monospaced-numbers doesn't work on iOS
[WebKit-https.git] / LayoutTests / platform / ios-simulator / fast / text / system-monospaced-numbers.html
1 <style>
2 span {
3     font-family: -apple-system-font-monospaced-numbers;
4     font-size: 24px
5 }
6 </style>
7 <script>
8 if (window.testRunner)
9     window.testRunner.dumpAsText();
10
11 window.addEventListener("load", run, false);
12
13 function run() {
14     var a = document.getElementById("a");
15     var b = document.getElementById("b");
16     var result = document.getElementById("result");
17
18     var aRect = a.getBoundingClientRect();
19     var bRect = b.getBoundingClientRect();
20
21     if (aRect.width == bRect.width)
22         result.textContent = "PASS: widths were the same";
23     else
24         result.textContent = "FAIL: widths were not the same";
25 }
26 </script>
27 <p>These next two lines should be the same width</p>
28 <p><span id="a">00:11:22.33</span></p>
29 <p><span id="b">11:11:11.11</span></p>
30
31 <p id="result"></p>