wpt / css / css-ruby / ruby-tab-in-base-001.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-ruby/ruby-tab-in-base-001.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Ruby Test: tabulation inside a ruby base</title>
<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-phase-2">
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#line-breaks">
<link rel="match" href="ruby-tab-in-base-001-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
div.test {
  font: 25px/1 Ahem;
  white-space: pre;
  tab-size: 100px;
}
</style>
<body>
<div class="test">X<ruby>&#9;Y<rt>z</rt></ruby></div>
</body>

/css/css-ruby/ruby-tab-in-base-001-ref.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Ruby Reference: tabulation inside a ruby base</title>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
div.test {
  font: 25px/1 Ahem;
}
span.tab {
  /* The tab starts at 25px; the next 100px tab stop is at 100px, i.e. 75px. */
  padding-left: 75px;
}
</style>
<body>
<div class="test">X<ruby><span class="tab"></span>Y<rt>z</rt></ruby></div>
</body>