Revision 190c3feba3a42cbc4c32facd7994c190589d889e authored by Liam R. E. Quin on 26 March 2018, 01:04:45 UTC, committed by Liam R. E. Quin on 26 March 2018, 01:04:45 UTC
1 parent 2b4cdad
Raw File
line-height-step-valign-001.html
<!DOCTYPE html>
<title>CSS Rhythmic Sizing: line-height-step vertical-align test</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-valign-001.html">
<meta name="assert" content="This test asserts the vertical-align property with the line-height-step property.">
<meta name="flags" content="ahem">
<style>
div {
  font-family: Ahem;
  font-size: 40px;
}
.test {
  line-height-step: 80px;
  line-height: 1;
}
.ref {
  line-height: 1;
}
.adjuster {
  line-height: 80px;
  color: transparent;
}
.top {
  vertical-align: top;
}
.text-top {
  vertical-align: text-top;
}
.text-bottom {
  vertical-align: text-bottom;
}
.bottom {
  vertical-align: bottom;
}
</style>
<p class="instructions">Test passes if two lines are the same.
<div class="ref">
  <div>XX<span class="top">X</span><span class="text-top">X</span><span class="text-bottom">X</span><span class="bottom">X</span><span class="adjuster">X</span></div>
</div>
<div class="test">
  <div>XX<span class="top">X</span><span class="text-top">X</span><span class="text-bottom">X</span><span class="bottom">X</span></div>
</div>
back to top