Adding prefix to grid layout
See original GitHub issueVersion
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:
- Created 6 years ago
- Reactions:9
- Comments:18 (6 by maintainers)
Top 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 >
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
@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.
autoprefixer
9.7.0 is out, and looks like the performance has been improved. https://github.com/postcss/autoprefixer/releases/tag/9.7.0Should we consider to switch the prefixer from
stylis
toautoprefixer
? Sinceautoprefixer
does great jobs on CSS Grid.