2007-12-24 04:38:11 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
2010-03-08 13:10:50 +03:00
|
|
|
<style>
|
|
|
|
/* explicitly load a font that supports the "fi" ligature */
|
|
|
|
@font-face {
|
|
|
|
font-family: test;
|
|
|
|
src: url(../fonts/mplus/mplus-1p-regular.ttf);
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
font-family: test, serif;
|
2010-03-08 18:49:29 +03:00
|
|
|
padding: 20px;
|
2010-03-08 13:10:50 +03:00
|
|
|
}
|
|
|
|
</style>
|
2007-12-24 04:38:11 +03:00
|
|
|
<script>
|
|
|
|
function m()
|
|
|
|
{
|
|
|
|
document.body.offsetHeight;
|
|
|
|
var div = document.getElementById("div");
|
|
|
|
div.appendChild(document.createTextNode("i"));
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="m();">
|
2010-08-05 13:18:37 +04:00
|
|
|
<div id="div" style="font-size: 40px"><span>if</span></div>
|
2007-12-24 04:38:11 +03:00
|
|
|
</body>
|
|
|
|
</html>
|