Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-contain/content-visibility/content-visibility-on-ruby.html
<!DOCTYPE html> <html> <link rel="match" href="content-visibility-on-ruby-ref.html"> <link rel="help" href="https://drafts.csswg.org/css-contain-2/#content-visibility"> <meta name="assert" content="content-visibility does not apply when the principal box is an internal ruby box since size containment does not apply to it"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> ruby { font: 25px/1 Ahem; } </style> <body> <p>Test passes if both base and annotation are visible</p> <ruby style="content-visibility: hidden;">base<rt>annotation</rt></ruby> </body> </html>
/css/css-contain/content-visibility/content-visibility-on-ruby-ref.html
<!DOCTYPE html> <html> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> ruby { font: 25px/1 Ahem; } </style> <body> <p>Test passes if both base and annotation are visible</p> <ruby>base<rt>annotation</rt></ruby> </body> </html>