Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected NaN when autoplacing grid for IE #1446

Closed
SukkaW opened this issue Feb 25, 2022 · 1 comment
Closed

unexpected NaN when autoplacing grid for IE #1446

SukkaW opened this issue Feb 25, 2022 · 1 comment

Comments

@SukkaW
Copy link
Contributor

SukkaW commented Feb 25, 2022

Given the code:

.test{grid-row-start:span 3; grid-row-end: 5}

autoprefixer (online demo) outputs:

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: since 2005
*/
.test{-ms-grid-row:span 3;grid-row-start:span 3; -ms-grid-row-span: NaN; grid-row-end: 5}

It can also be reproduced in the latest version:

const autoprefixer = require('autoprefixer')
const postcss = require('postcss')

const css = `
/* autoprefixer grid: autoplace */
.test{grid-row-start:span 3; grid-row-end: 5}
`;

postcss([ autoprefixer ]).process(css).then(result => {
  result.warnings().forEach(warn => {
    console.warn(warn.toString())
  })
  console.log(result.css)
});

https://runkit.com/sukkaw/postcss-issue-1446

@SukkaW SukkaW changed the title unexpected NaN when autoplacing grid unexpected NaN when autoplacing grid for IE Feb 25, 2022
@ai
Copy link
Member

ai commented Feb 25, 2022

Since IE 11 is old browser, I will not have time to fix it.

But I will accept PR and will help.

SukkaW added a commit to SukkaW/autoprefixer that referenced this issue Apr 23, 2022
@SukkaW SukkaW mentioned this issue Apr 23, 2022
@ai ai closed this as completed in 355a87a Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants