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.

Adding prefix to grid layout

See original GitHub issue

Version

2.1.2

Reproduction

const Container = styled.div`
  display: grid;
`

Expected Behavior

Output:

.sc-sc-gzVnrw {
  display: -ms-grid;
  display: grid;
}

Actual Behavior

Output:

.sc-sc-gzVnrw {
  display: grid;
}

https://github.com/postcss/autoprefixer/issues/603#issuecomment-168979519

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

19reactions
JeroenReumkenscommented, Dec 4, 2018

@kitten @mxstbr I won’t create a new ticket right away, but wanted to check in with you if you think we as Styled Components community could do anything to make sure this will be added to Stylis. It’s a year later, and there is a new issue over at the Stylis repo: https://github.com/thysultan/stylis.js/issues/119

I was thinking that if we’d open an issue at the Styled Components repo as well, we might get some additional attention and find the right people who have the time and knowledge to fix this. I’ve already asked for some directions on how to fix this in the Stylis repo, because I really don’t know where to start in all of the switch cases 😦

I also have a feeling that since Grid is becoming more popular every day, the lack of grid prefixing could one day could become a reason for users not to use Styled Components, which would be a shame I think.

I’ld love to hear your opinion on this.

9reactions
Chun-Lincommented, Nov 4, 2019

autoprefixer 9.7.0 is out, and looks like the performance has been improved. https://github.com/postcss/autoprefixer/releases/tag/9.7.0

Should we consider to switch the prefixer from stylis to autoprefixer? Since autoprefixer does great jobs on CSS Grid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Grid Layout and progressive enhancement
Autoprefixer grid layout support​​ By default, grid prefixes are disabled, but you can enable it with grid: true option. Grid prefixes are ...
Read more >
Getting rid of "grid-" prefix on CSS Grid Layout gutter properties
Early this year I was working on unprefixing the CSS Grid Layout gutter properties. The properties were originally named grid-column-gap and ...
Read more >
CSS Grid in IE: CSS Grid and the New Autoprefixer
Each grid element must have unique area names. Autoprefixer only prefixes grid-gap if both grid-template-areas and grid-template-columns have ...
Read more >
Adding Prefix in CSS Flexbox Grid System | Part - 9 - YouTube
Hey guys in this video you will learn what are prefix in css and why we use and how to use them in...
Read more >
Configure Autoprefixer correctly to output -ms-grid prefixes.
In this post I explain why you need to get -ms-grid vendor prefix to ... vendor prefixes are being applied is by adding...
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