blob: e9fab028d93b36a70a3b6ca40e36070b3985251b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body style="text-rendering: optimizeLegibility;">
This test makes sure that 0-sized fonts have 0-sized advances. The green rectangle below's height should be less than 30 pixels.
<div id="sample" style="font-size: 0; width: 970px; background: green;"><div style="display: inline-block; width: 320px; height: 20px; font-size: 16px; background: green;"></div> <div style="display: inline-block; width: 648px; height: 10px; font-size: 16px; background: green;"></div></div>
<script>
shouldBeTrue("document.getElementById('sample').getBoundingClientRect().height < 30");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>