wpt / css / css-ruby / rt-text-indent-001.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-ruby/rt-text-indent-001.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Ruby Test: 'text-indent' inherited from an explicit-width ancestor should not inflate 'rt'</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2053351">
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#formatting-context">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-indent-property">
<link rel="match" href="rt-text-indent-001-ref.html">
<meta name="assert" content="'text-indent' must not be inherted beyond rt.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
html, body {
  margin: 0;
}
div {
  font: 20px/1 Ahem;
  width: 100px;
  text-indent: 50px;
}
rt {
  font-size: 20px;
}
span {
  display: inline-block;
}
</style>
<div><ruby><rb>X</rb><rt><span>Y</span></rt></ruby>Z</div>

/css/css-ruby/rt-text-indent-001-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Ruby Reference: 'text-indent' inherited from an explicit-width ancestor should not inflate 'rt'</title>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
html, body {
  margin: 0;
}
div {
  font: 20px/1 Ahem;
  width: 100px;
  text-indent: 50px;
}
rt {
  font-size: 20px;
}
span {
  display: inline-block;
  text-indent: 0;
}
</style>
<div><ruby><rb>X</rb><rt><span>Y</span></rt></ruby>Z</div>