blob: 4f91ff10c30b005cec6debac96f10be5ccbd67b0 (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
<html class="reftest-wait">
<!--
This test makes sure that the glyph extents are being extended to
the bounds of the SVG glyph by placing an SVG glyph in a div outside
the truetype extents but inside the SVG extents
-->
<head>
<style type="text/css">
@font-face {
font-family : svgttf;
src : url(resources/svg.woff);
}
body {
font-family : svgttf;
font-size : 200px;
color : palevioletred;
}
div {
width : 160px;
overflow : hidden;
}
</style>
<script type="text/javascript">
function expand() {
var div = document.getElementById("thediv");
div.style.width = "200px";
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", expand);
</script>
</head>
<body>
<div id="thediv">
O<br>
</div>
</body>
</html>
|