display table and bad overflow: hidden in IE and MS Edge

Viewed 626

I have border-radius and overflow: hidden on the parent element to hide anything overflowing inner.

It should looks like this:

goal

It works everywhere except IE and Edge. In these browsers, it looks like this:

explorer/edge

HTML:

<div class="table">
    <div class="col1"></div>
    <div class="col2"></div>
</div>

CSS:

.table {
    border-radius: 10px;
    border: 1px solid black;
    overflow: hidden;
    display: table;
    width: 100%;
}

.col1 {
    background: pink;
    display: table-cell;
    width:50px;
}

.col2 {
    background: orange;
    display: table-cell;
    height: 200px;
}
2 Answers
Related