Autoprefixer: [css-grid] Bug when specifying two values for grid-gap

Created on 16 May 2018  ·  5Comments  ·  Source: postcss/autoprefixer

Test case:

.a-two {
    grid-gap: 2rem 1rem;
    grid-template-rows: 1fr minmax(100px, 1fr) 2fr;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "head-two head-two head-two"
        "nav-two  main-two main-two"
        "nav-two  foot-two foot-two";
}

Expected:

.a-two {
    grid-gap: 2rem 1rem;
    -ms-grid-rows: 1fr 2rem minmax(100px, 1fr) 2rem 2fr;
    grid-template-rows: 1fr minmax(100px, 1fr) 2fr;
    -ms-grid-columns: 1fr 1rem 1fr 1rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "head-two head-two head-two"
        "nav-two  main-two main-two"
        "nav-two  foot-two foot-two";
}

Actual:

.a-two {
    grid-gap: 2rem 1rem;
    -ms-grid-rows: 1fr 2rem 1rem minmax(100px, 1fr) 2rem 1rem 2fr;
    grid-template-rows: 1fr minmax(100px, 1fr) 2fr;
    -ms-grid-columns: 1fr 2rem 1rem 1fr 2rem 1rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "head-two head-two head-two"
        "nav-two  main-two main-two"
        "nav-two  foot-two foot-two";
}
bug support

Most helpful comment

I forgot about two values 🤦‍♂️
I'll fix it in few days.

All 5 comments

/cc @yepninja

I forgot about two values 🤦‍♂️
I'll fix it in few days.

@yepninja this is a high priority issue that should get fixed before the article is published.

Closed by https://github.com/postcss/autoprefixer/pull/1054 will be released on this weekend or in the beginning of next week.

Released in 8.6 “Follow Reason”

Was this page helpful?
0 / 5 - 0 ratings