https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 426d4707da2b60265fba7e5112ccbda72b113580 authored by Anne van Kesteren on 24 April 2018, 09:28:12 UTC
nit and use assert_equals
Tip revision: 426d470
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">
<style>
div {
  font-family: Ahem;
  font-size: 40px;
}
.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="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>
back to top