mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
34 lines
872 B
HTML
34 lines
872 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Rhythmic Sizing: line-height-step and ruby</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-ruby-001.html">
|
|
<meta name="assert" content="This test asserts the line-height-step property and ruby.">
|
|
<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: 120px;
|
|
}
|
|
.ref {
|
|
line-height: 120px;
|
|
}
|
|
</style>
|
|
<body>
|
|
<p class="instructions">Test passes if left and right are the same.
|
|
<div class="ref">
|
|
<div>X<ruby>XX<rt>XX</rt></ruby>X</div>
|
|
</div>
|
|
<div class="test">
|
|
<div>X<ruby>XX<rt>XX</rt></ruby>X</div>
|
|
</div>
|
|
</body>
|