https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 392366fb149414c0c2ef08b3d4741a32069025f3 authored by Han Leon on 21 December 2017, 10:00:24 UTC
[ServiceWorker] Let Client.url be the creation url of the window client
Tip revision: 392366f
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