OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 | 7 |
8 oContext2d = document.getCSSCanvasContext("2d","",0,0); | 8 oContext2d = document.getCSSCanvasContext("2d","",0,0); |
9 oContext2d.font = "small-caps .0ex G"; | 9 oContext2d.font = "small-caps .0ex G"; |
10 oContext2d.font = "italic .0ex G"; | 10 oContext2d.font = "italic .0ex G"; |
11 oContext2d.font = "italic 400 .0ex G"; | 11 oContext2d.font = "italic 400 .0ex G"; |
| 12 oContext2d.font = "italic 400 small/.0ex G"; |
12 </script> | 13 </script> |
13 </head> | 14 </head> |
14 <body> | 15 <body> |
15 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=66291">66291</a
>: Crash because CSSPrimitiveValue::computeLengthDouble assumes fontMetrics are
available</p> | 16 <p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=66291">66291</a
>: Crash because CSSPrimitiveValue::computeLengthDouble assumes fontMetrics are
available</p> |
16 <p>This test passed as it did not crash.</p> | 17 <p>This test passed as it did not crash.</p> |
OLD | NEW |