blob: 0b7146e1895292953311349ba4ef1e2164f52689 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description">Tests that text with font-size:0 has zero height and width.</p>
<div id="console"></div>
<script>
var s = document.createElement('span');
s.style.fontSize = 0;
s.innerHTML = 'Text';
document.body.appendChild(s);
shouldBe("s.getBoundingClientRect().height", "0");
shouldBe("s.getBoundingClientRect().width", "0");
document.body.removeChild(s);
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>