wpt / css / css-gaps / flex / flex-gap-decorations-multi-value-direction.html

Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-gaps/flex/flex-gap-decorations-multi-value-direction.html

<!DOCTYPE html>
<title>
    CSS Gap Decorations: Flex gap decoration colors with multiple values
    and direction.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/#gap-decorations">
<link rel="match" href="flex-gap-decorations-multi-value-direction-ref.html">
<link rel="author" title="Kevin Babbitt" href="mailto:kbabbitt@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    .flex {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 230px;
        column-rule-color: red, green, blue;
        column-rule-style: solid;
        column-rule-width: 10px;
        row-rule-color: orange, purple;
        row-rule-style: solid;
        row-rule-width: 10px;
        margin-bottom: 20px;
    }
    .flex > * {
        background: lightgray;
        width: 50px;
        height: 50px;
    }
</style>
<div class="flex" style="direction: ltr;">
    <div></div><div></div><div></div><div></div>
    <div></div><div></div><div></div><div></div>
    <div></div><div></div><div></div><div></div>
</div>
<div class="flex" style="direction: rtl;">
    <div></div><div></div><div></div><div></div>
    <div></div><div></div><div></div><div></div>
    <div></div><div></div><div></div><div></div>
</div>

/css/css-gaps/flex/flex-gap-decorations-multi-value-direction-ref.html

<!DOCTYPE html>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/#gap-decorations">
<link rel="author" title="Kevin Babbitt" href="mailto:kbabbitt@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    .section {
        position: relative;
        margin-bottom: 20px;
    }
    .flex {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 230px;
    }
    .flex > * {
        background: lightgray;
        width: 50px;
        height: 50px;
    }
    .col-rule {
        position: absolute;
        width: 10px;
        height: 170px;
        top: 0px;
    }
    .row-rule {
        position: absolute;
        height: 10px;
        width: 230px;
        left: 0px;
    }
</style>
<!-- direction: ltr — column colors left-to-right: red, green, blue.
     Row colors top-to-bottom: orange, purple. -->
<div class="section">
    <div class="col-rule" style="left: 50px; background: red;"></div>
    <div class="col-rule" style="left: 110px; background: green;"></div>
    <div class="col-rule" style="left: 170px; background: blue;"></div>
    <div class="row-rule" style="top: 50px; background: orange;"></div>
    <div class="row-rule" style="top: 110px; background: purple;"></div>
    <div class="flex" style="direction: ltr;">
        <div></div><div></div><div></div><div></div>
        <div></div><div></div><div></div><div></div>
        <div></div><div></div><div></div><div></div>
    </div>
</div>
<!-- direction: rtl — column colors reversed: blue, green, red left-to-right.
     Row colors unchanged: orange, purple. -->
<div class="section">
    <div class="col-rule" style="left: 50px; background: blue;"></div>
    <div class="col-rule" style="left: 110px; background: green;"></div>
    <div class="col-rule" style="left: 170px; background: red;"></div>
    <div class="row-rule" style="top: 50px; background: orange;"></div>
    <div class="row-rule" style="top: 110px; background: purple;"></div>
    <div class="flex" style="direction: rtl;">
        <div></div><div></div><div></div><div></div>
        <div></div><div></div><div></div><div></div>
        <div></div><div></div><div></div><div></div>
    </div>
</div>