Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-sizing/shrink-to-fit-sizing-max-width-min-content.html
<!DOCTYPE html> <html> <head> <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <link rel="help" href="https://drafts.csswg.org/css2/#float-width"> <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="shrink-to-fit sizing should respect max-width: min-content"> <style> .container { font: 100px/1 Ahem; color: green; width: 100px; } .float { float: right; } .max-content { max-width: min-content; width: 600px; } </style> </head> <body> <p>Test passes if there is a filled green square.</p> <div class="container"> <div class=float> <div class=max-content>x</div> </div> </div> </body> </html>
/css/reference/ref-filled-green-100px-square-only.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> <p>Test passes if there is a filled green square.</p> <div style="width:100px; height:100px; background:green;"></div>