<!DOCTYPE html>
<html>
<head>
<title>This tests that we don't measure text with font-size 0.</title>
<style>
a {
  white-space: pre-wrap;
  font-size: 0;
  display: grid;
}
</style>
<script>
if (window.testRunner)
  testRunner.dumpAsText();
</script>
</head>
<body>
PASS if no assert in debug.
<a>&#9</a>
</body>
</html>
