Have an IE and Edge specific problem. Fooling around with "CSS grid layout" and auto width seems not to work in IE 10/11 or even in newest version of Edge. (Works fine in Chrome and FireFox.)
.test {
width 100%;
}
.test #contain {
display: -ms-grid;
display: grid;
-ms-grid-columns: 50px 10px auto;
-ms-grid-rows: 50px;
grid-template-columns: 50px auto;
grid-template-rows: 50px;
grid-column-gap: 10px;
}
.test .sec1 {
-ms-grid-row: 1;
-ms-grid-column: 1;
background-color: red;
}
.test .sec2 {
-ms-grid-row: 1;
-ms-grid-column: 3;
grid-column-start: 2;
grid-column-end: 3;
grid-row-start: 1;
grid-row-end: 2;
background-color: red;
}
<div class="test">
<div id="contain">
<div class="sec1">1</div>
<div class="sec2">2</div>
</div>
</div>
So is the error on my part or did Microsoft make lame stuff again?
Besides I thought that Edge should have a full implementation of the latest CSS grid but I guess not since I still need to use -ms.