Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: BR with line-height: 0 does not collapse the line in standards mode</title>
<link rel="match" href="br-line-height-zero-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="A BR with line-height: 0 does not collapse the line below the root inline box strut in standards mode.">
<style>
body {
margin: 0;
}
div {
font: 20px/1 Ahem;
}
br {
line-height: 0;
}
</style>
</head>
<body>
<p>Test passes if X appears at approximately 20px from the top.</p>
<div><br>X</div>
</body>
</html>