blob: d39f03218b3a05b510ba8e6c0a52e2b7bdc60c27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<html>
<head>
<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;
padding: 20px;
}
</style>
<script>
function m()
{
document.body.offsetHeight;
var parent = document.getElementById("parent");
parent.appendChild(document.createTextNode("i"));
}
</script>
</head>
<body onload="m();">
<div id="div" style="font-size: 40px"><span>if</span><span id="parent"></span></div>
</body>
</html>
|