blob: 243eafc295c6564510084f7eaf46b7bfca4ea9a8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
font-family: "WebFont";
src: url("resources/Ahem-negative-line-gap.ttf") format("truetype");
}
</style>
</head>
<body>
This test makes sure that fonts with negative line gap metrics get their effective line gap clamped to 0.
The test passes if you see a black rectangle below of width 240 and height 96, and it doesn't overlap this text.
<div style="padding-top: 2px; width: 5ch; font: 48px 'WebFont';">Hello Hello</div>
</body>
</html>