https://github.com/web-platform-tests/wpt
Raw File
Tip revision: fbd0b72403a51b313f17fb9e5a8445ab872b2784 authored by Mattias Buelens on 15 March 2018, 21:08:12 UTC
Add assert messages
Tip revision: fbd0b72
line-height-step-basic-001.html
<!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>
back to top