Autoprefixer: `grid: false` does not disable adding of `-ms-grid` to `@supports`

Created on 31 Jan 2017  路  5Comments  路  Source: postcss/autoprefixer

The following input CSS:

@supports (display: grid) {
  .foo {
    display: grid;
  }
}

produces the following result with the grid: false option passed to autoprefixer:

@supports ((display: -ms-grid) or (display: grid)) {
  .foo {
    display: grid; } }

This is unexpected and leads to inconsistent prefixing. Setting grid: false should in my mind disable it everywhere, including @supports rules.

bug

All 5 comments

Sure. Thanks for report. I will try to fix it today.

Thanks for the super-speedy reply, @ai!

Done 7a4350a

Released in 6.7.2.

That was incredibly quick, thank you, @ai! Moving to 6.7.2 as the minimum version in my code, and removing the workaround :)

Was this page helpful?
0 / 5 - 0 ratings