Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-ruby/ruby-annotation-with-margin.html
<!DOCTYPE html> <title>Interlinear ruby annotation box with margin</title> <link rel="match" href="ruby-annotation-with-margin-ref.html"> <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#interlinear-layout"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> body { margin: 0; display: flow-root; font-family: Ahem; font-size: 10px; } div { overflow: hidden; } .under, [style*="writing-mode"] { overflow: visible; } ruby { color: transparent; } rt { color: green; } .under ruby { ruby-position: under; } </style> <div><ruby>base<rt style="margin: 10px;">annotation</rt></ruby></div> <div><ruby>base<rt style="margin-top: 10px;">annotation</rt></ruby></div> <div><ruby>base<rt style="margin-bottom: 10px;">annotation</rt></ruby></div> <div class=under> <div><ruby>base<rt style="margin: 10px;">annotation</rt></ruby></div> <div><ruby>base<rt style="margin-top: 10px;">annotation</rt></ruby></div> <div><ruby>base<rt style="margin-bottom: 10px;">annotation</rt></ruby></div> </div> <div style="writing-mode: vertical-lr"> <div><ruby>base<rt style="margin: 10px;">annotation</rt></ruby></div> <div><ruby>base<rt style="margin-top: 10px;">annotation</rt></ruby></div> <div><ruby>base<rt style="margin-bottom: 10px;">annotation</rt></ruby></div> </div>
/css/css-ruby/ruby-annotation-with-margin-ref.html
<!DOCTYPE html> <link rel="stylesheet" href="/fonts/ahem.css"> <style> body { margin: 0; display: flow-root; font-family: Ahem; font-size: 10px; } div { overflow: hidden; } [style*="writing-mode"] { overflow: visible; } ruby { color: transparent; } rt { color: green; } </style> <div style="margin: 10px 0px 20px 10px;"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin-top: 10px;"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin-bottom: 30px;"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin: 20px 0px 10px 10px"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin: 20px 0px 0px 0px"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin: 0px 0px 10px 0px"><ruby>base<rt>annotation</rt></ruby></div> <div style="writing-mode: vertical-lr"> <div style="margin: 0px 0px 0px 10px"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin: 0px 0px 0px 10px"><ruby>base<rt>annotation</rt></ruby></div> <div style="margin: -10px 0px 0px 0px"><ruby>base<rt>annotation</rt></ruby></div> </div>