grid-area prefixing missing when used with grid-template with grid area definitions
See original GitHub issueI played around with the grid-template shorthand syntax today and discovered, that is seems only to be only partially implemented:
As per i. e. https://developer.mozilla.org/de/docs/Web/CSS/grid-template, use can use the following values for grid-template:
a) grid-template-rows / grid-template-columns values b) grid-template-areas grid-template-rows / grid-template-column values
a) seems to be working correctly.
grid-template: 1fr 1fr / auto
is transformed to
-ms-grid-rows: 1fr 1fr;
-ms-grid-columns: auto;
But b) seems not to be implemented. See example below:
SCSS input:
.box {
display: grid;
grid-template: "a b" auto / 1fr 1fr;
#a {
grid-area: a;
}
#b {
grid-area: b;
}
}
CSS output: Notice: -ms-grid-row and -ms-grid-column props are missing for #b.
.box {
display: -ms-grid;
display: grid;
grid-template: "a b" auto / 1fr 1fr;
}
.box #a {
grid-area: a;
}
.box #b {
grid-area: b;
}
Would be very nice if you guys could also implement this use case.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Grid template areas - CSS: Cascading Style Sheets | MDN
This method involves placing our items using named template areas, and we will find out exactly how this method works. You will see...
Read more >grid-template-areas | CSS-Tricks
The grid-template-areas CSS property allows you to define and name the cells (or “areas”) in a CSS grid container.
Read more >CSS Grid Layout not working in IE11 even with prefixes
This is just an attempt to make a possible solution more obvious. It's important to note that you have to define -ms-grid-column for...
Read more >Understanding CSS Grid: Grid Template Areas
In a new series, Rachel Andrew breaks down the CSS Grid Layout specification. This time, we take a look at how to use...
Read more >Supporting CSS Grid in Internet Explorer | by Elad Shechter
What isn't supported in CSS Grid in IE, and How can you Make It Work? · Grid-gap isn't supported, but you can use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done here #992
Released in 8.1