I'm working on a layout that uses CSS-grid with breakout sections that use grid-template-columns: inherit;. Basically using the technique described in this article: https://cloudfour.com/thinks/breaking-out-with-css-grid-layout/
This works fine in major browsers, except for Edge 44, where grid-template-columns: inherit; seems to break the layout. If I simply copy the inherited value by hand, it displays fine.
Anyone know why this is happening, and if there is a way to fix it without manually duplicating the inherited values?
Here is a short code snippet showcasing the issue:
body {
display: grid;
grid-template-columns: [full-start] minmax(2em, 1fr) [main-start] minmax(0px, calc(500px / 2)) [main-right] minmax(0px, calc(500px / 2)) [main-end] minmax(2em, 1fr) [full-end];
}
.breakout {
background: grey;
width: 100%;
grid-column: full;
display: inherit;
grid-template-columns: inherit;
}
.content {
grid-column: main;
}
<body>
<div class = "breakout">
<div class = "content">
<p> This is the content inside the breakout element. It should sit properly within the grid, but for some reason it breaks in Edge 44. </p>
</div>
</div>
</body>
EDIT: Seems like the problem stems from inheriting with calc(). Possibly a bug?
