summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input/flex-shrink-1.html
blob: c62775f0b6914f798005a041f312890e942fde10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<style>
    body {
        font-family: 'SerenitySans';
    }

    .container {
        display: flex;
        border: 1px solid salmon;
        width: 250px;
    }

    .box {
        width: 100px;
        height: 100px;
        border: 1px solid black;
    }
</style>
<div class="container">
    <div class="box" style="flex-shrink: 4;">1 I shrink the most</div>
    <div class="box" style="flex-shrink: 2;">2 I shrink</div>
    <div class="box" style="flex-shrink: 0;">3 I don't</div>
</div>