Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-gaps/flex/flex-gap-decorations-054.html
<!DOCTYPE html> <title> CSS Gap Decorations: Gap decorations are painted properly in flexbox with different sized gaps per line due to content distribution. Tests scenario where the row rule breaks at each intersection and `row-rule-inset` is -50%. </title> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/"> <link rel="match" href="flex-gap-decorations-054-ref.html"> <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> <style> body { margin: 0px; } #flexbox { width: 400px; border: 2px solid #333; background-color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 10px; column-rule: 5px solid gold; row-rule: 5px red solid; row-rule-break: intersection; row-rule-inset: -50%; } .item { width: 70px; height: 50px; background-color: #007bff; color: white; display: flex; } </style> <div id="flexbox"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div>
/css/css-gaps/flex/flex-gap-decorations-054-ref.html
<!DOCTYPE html> <link rel="help" href="https://www.w3.org/TR/css-gaps-1/#inset"> <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> <style> body { margin: 0px; } #flexbox { width: 400px; border: 2px solid #333; background-color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 10px; } .item { width: 70px; height: 50px; background-color: #007bff; color: white; display: flex; } .rule { position: absolute; top: 2px; height: 50px; border-right: 5px solid gold; } .row-rule { position: absolute; display: inline; height: 0px; border-bottom: 5px solid red; top: 54.5px; } </style> <div class="rule" style="left: 75.75px;"></div> <div class="rule" style="left: 158.25px;"></div> <div class="rule" style="left: 240.75px;"></div> <div class="rule" style="left: 323.25px;"></div> <div class="rule" style="top: 62px; left: 89.5px;"></div> <div class="rule" style="top: 62px; left: 199.5px;"></div> <div class="rule" style="top: 62px; left: 309.5px;"></div> <div class="row-rule" style="left: 2px; width: 400px;"></div> <div id="flexbox"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div>