Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-flexbox/percentage-padding-002.html
<!DOCTYPE html> <title>This test checks that percentage paddings do not lead to flex items with negative sizes.</title> <link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com"> <link rel="help" href="https://drafts.csswg.org/css-box-3/#padding-physical" title="Percentages line"> <link rel="match" href="percentage-padding-002-ref.html"> <style> div { width: 50px; height: 50px; } span { display: inline-flex; border: 5px solid black; } </style> <p>Test passes if there is a white square inside a 10x30 white box.</p> <div> <span> <span style="padding: 100%;"></span> </span> <div>
/css/css-flexbox/percentage-padding-002-ref.html
<!DOCTYPE html> <link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com"> <style> div { width: 50px; height: 50px; } span { display: block; border: 5px solid black; } </style> <p>Test passes if there is a white square inside a 10x30 white box.</p> <div> <span style="width: 10px; height: 30px;"> <span style="padding: 10px;"></span> </span> <div>