blob: d1dcb74e9c59d176cad05af62d90fca0daf521ee [file] [log] [blame]
<!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>