wpt / css / css-gaps / flex / flex-gap-decorations-writing-mode.html

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

/css/css-gaps/flex/flex-gap-decorations-writing-mode.html

<!DOCTYPE html>
<title>
    CSS Gap Decorations: Flex gap decorations with non-default writing-mode values.
</title>
<link rel="help" href="https://www.w3.org/TR/css-gaps-1/#gap-decorations">
<link rel="match" href="flex-gap-decorations-writing-mode-ref.html">
<link rel="author" title="Kevin Babbitt" href="mailto:kbabbitt@microsoft.com">
<style>
    body {
        margin: 0px;
    }
    .flex {
        display: flex;
        flex-wrap: wrap;
        column-gap: 10px;
        row-gap: 10px;
        column-rule: 10px solid blue;
        row-rule: 10px solid red;
        width: 110px;
        height: 170px;
        margin-bottom: 20px;
    }
    .flex > * {
        background: lightgray;
        width: 50px;
        height: 50px;
    }
    .flex > :first-child {
        background: salmon;
    }
</style>
<div class="flex" style="writing-mode: vertical-rl;">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</div>
<div class="flex" style="writing-mode: vertical-lr;">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</div>
<div class="flex" style="writing-mode: sideways-rl;">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</div>
<div class="flex" style="writing-mode: sideways-lr;">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</div>

/css/css-gaps/flex/flex-gap-decorations-writing-mode-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;
        column-gap: 10px;
        row-gap: 10px;
        width: 110px;
        height: 170px;
    }
    .flex > * {
        background: lightgray;
        width: 50px;
        height: 50px;
    }
    .flex > :first-child {
        background: salmon;
    }
    .col-rule {
        position: absolute;
        left: 0px;
        height: 10px;
        width: 110px;
        background: blue;
    }
    .row-rule {
        position: absolute;
        top: 0px;
        left: 50px;
        width: 10px;
        height: 170px;
        background: red;
    }
</style>
<div class="section">
    <div class="col-rule" style="top: 50px;"></div>
    <div class="col-rule" style="top: 110px;"></div>
    <div class="row-rule"></div>
    <div class="flex" style="writing-mode: vertical-rl;">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>
<div class="section">
    <div class="col-rule" style="top: 50px;"></div>
    <div class="col-rule" style="top: 110px;"></div>
    <div class="row-rule"></div>
    <div class="flex" style="writing-mode: vertical-lr;">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>
<div class="section">
    <div class="col-rule" style="top: 50px;"></div>
    <div class="col-rule" style="top: 110px;"></div>
    <div class="row-rule"></div>
    <div class="flex" style="writing-mode: sideways-rl;">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>
<div class="section">
    <div class="col-rule" style="top: 50px;"></div>
    <div class="col-rule" style="top: 110px;"></div>
    <div class="row-rule"></div>
    <div class="flex" style="writing-mode: sideways-lr;">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>