Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-contain/contain-size-062.html
<!DOCTYPE html> <meta charset="UTF-8"> <title>CSS Containment Test: 'contain: size' applies to block box (basic)</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-062-ref.html"> <style> div { border: orange solid 3px; color: blue; contain: size; font-size: 32px; width: 400px; } </style> <p>Test passes if the words "Text sample" are below a thick orange line. Test fails if, instead of a thick orange line, there is an orange rectangle with the words "Text sample" in it. <div>Text sample</div>
/css/css-contain/reference/contain-size-062-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> div { border: orange solid 3px; color: blue; font-size: 32px; height: 0px; width: 400px; } </style> <p>Test passes if the words "Text sample" are below a thick orange line. Test fails if, instead of a thick orange line, there is an orange rectangle with the words "Text sample" in it. <div>Text sample</div>