18 lines
614 B
HTML
18 lines
614 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
oContext2d = document.getCSSCanvasContext("2d","",0,0);
|
|
oContext2d.font = "small-caps .0ex G";
|
|
oContext2d.font = "italic .0ex G";
|
|
oContext2d.font = "italic 400 .0ex G";
|
|
oContext2d.font = "italic 400 small/.0ex G";
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<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>
|
|
<p>This test passed as it did not crash.</p>
|