;
    display: -webkit-flex;
    -webkit-flex-wrap: wrap;
}
.fit-content {
    width: 10px;
    min-width: -webkit-fit-content;
    min-width: -moz-fit-content;
    min-width: -ie-fit-content;
    min-width: -o-fit-content;
    min-width: fit-content;
    outline: 2px solid;
    display: -webkit-flex;
    -webkit-flex-wrap: wrap;
}
.child {
    width: 20px;
    height: 20px;
    background-color: pink;
}
div {
    display: inline-block;
    line-height: 0;
}
</style>
<script src="../../resources/check-layou