question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

grid-area prefixing missing when used with grid-template with grid area definitions

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yepninjacommented, Feb 22, 2018

Done here #992

0reactions
aicommented, Mar 2, 2018

Released in 8.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found