Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/flex/flex-gap-decorations-021.html
<!DOCTYPE html> <title> CSS Gap Decorations: flex gaps are painted with overflow hidden. </title> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="match" href="flex-gap-decorations-021-ref.html"> <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> <style> body { margin: 0px; } .flex-container { position: absolute; top: 0; left: 0; height: 110px; width: 110px; display: flex; column-gap: 10px; row-gap: 10px; column-rule-color: blue; column-rule-style: solid; column-rule-width: 10px; row-rule-color: gold; row-rule-style: solid; row-rule-width: 10px; flex-wrap: wrap; } .flex-item { background: skyblue; width: 50px; } .overflow { position: absolute; top: 0; left: 0; overflow: hidden; height: 80px; width: 80px; } </style> <div class="overflow"> <div class="flex-container"> <div class="flex-item"></div> <div class="flex-item"></div> <div class="flex-item"></div> <div class="flex-item"></div> </div> </div>
/css/css-gaps/flex/flex-gap-decorations-021-ref.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> <style> body { margin: 0px; } .container { display: flex; width: 110px; height: 110px; column-gap: 10px; row-gap: 10px; flex-wrap: wrap; } .item { background: skyblue; height: 50px; width: 50px; margin: 0; } .row-gap { position: absolute; top: 50px; background: gold; width: 110px; height: 10px; } .column-gap { position: absolute; top: 0px; left: 50px; background: blue; height: 110px; width: 10px; } .overflow { position: absolute; top: 0px; left: 0px; overflow: hidden; height: 80px; width: 80px; } </style> <div class="overflow"> <div class="container"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> <div class="column-gap"></div> <div class="row-gap"></div> </div>