22 lines
581 B
HTML
22 lines
581 B
HTML
<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>
|