blob: c24ba7087d468d712bb4503bd32f31ed6ae74e53 [file] [edit]
<!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>