blob: c00075b3ae0e1995743665f718b73e94a9f588f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<html>
<head>
<style type="text/css">
@import "pretty.css";
</style>
</head>
<body>
<div id="div">FAILED: This test fails if the font-size unresolved or incorrect.</div>
<script type="text/javascript">
var elem = document.getElementById("div");
var style = document.defaultView.getComputedStyle(elem, null);
var fontSize = style.getPropertyValue("font-size");
elem.style.fontSize = fontSize;
if (fontSize == "16px")
elem.innerHTML = "SUCCEEDED! This test passes if the font-size is non-zero and is correctly 16px.";
</script>
</body>
</html>
|