Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-ruby/rt-text-indent-001.html - WPT Dashboard Interop Dashboard
<!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="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>