16 lines
457 B
HTML
16 lines
457 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
@font-face {
|
|
font-family: "MyFont";
|
|
src: url("garbage") format("truetype");
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
This test makes sure that text being drawn during the "swap" period while the font is still loading is rendered as visible. The test passes if there is text below.
|
|
<div style="font: 100px 'MyFont', 'Helvetica';">Hello<div style="display: inline-block; width: 1px; height: 200px;"></div></div>
|
|
</body>
|
|
</html>
|