Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-contain/contain-size-056.html
<!DOCTYPE html> <meta charset="UTF-8"> <title>CSS Containment Test: 'contain: size' applies to caption element</title> <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <link rel="help" href="https://www.w3.org/TR/css-contain-1/#containment-size"> <link rel="match" href="reference/contain-size-056-ref.html"> <style> table { width: 400px; } caption { border: orange solid 3px; color: blue; contain: size; font-size: 32px; } </style> <p>Test passes if the words "Table caption" are below a thick orange line. Test fails if, instead of a thick orange line, there is an orange rectangle with the words "Table caption" in it. <table> <caption>Table caption</caption> </table>
/css/css-contain/reference/contain-size-056-ref.html
<!DOCTYPE html> <meta charset="UTF-8"> <title>CSS Reference Test</title> <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <style> table { width: 400px; } caption { border-top: orange solid 6px; color: blue; font-size: 32px; } span { bottom: 3px; position: relative; } </style> <p>Test passes if the words "Table caption" are below a thick orange line. Test fails if, instead of a thick orange line, there is an orange rectangle with the words "Table caption" in it. <table> <caption><span>Table caption</span></caption> </table>