17 lines
496 B
HTML
17 lines
496 B
HTML
|
<!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>
|