blob: 19727e30ae71afcf2b32d96161f761f662bf6d28 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Rhythmic Sizing: line-height-step basic layout</title>
<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-rhythm-1/#line-height-step">
<link rel="match" href="reference/line-height-step-basic-001.html">
<meta name="assert" content="This test asserts the line-height-step property rounds up line box height.">
<meta name="flags" content="ahem">
<style>
div {
font-family: Ahem;
font-size: 40px;
}
.test, .ref {
display: inline-block;
vertical-align: top;
width: 5em;
}
.test {
line-height: 40px;
line-height-step: 60px;
}
.ref {
line-height: 60px;
}
</style>
<p class="instructions">Test passes if left and right are the same.
<div class="ref">
<div>XXXXX</div>
<div>XXXXX XXXXX XXXXX</div>
<div><br>X<br>X</div>
</div>
<div class="test">
<div>XXXXX</div>
<div>XXXXX XXXXX XXXXX</div>
<div><br>X<br>X</div>
</div>