less / less/less-plugin-autoprefix
Enable grid layouts
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 169
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
I am unable to enable grid handling with the autoprefixer. According to https://github.com/postcss/autoprefixer#does-autoprefixer-polyfill-grid-layout-for-ie one has to pass the grid: true option or place a /* autoprefixer grid: on */ comment. But I have no idea where to set this option and the comment seems to be ignored, no matter if I set it at the top of the less-file or before the grid rules.
Input:
/* autoprefixer grid: on */
div {
/* autoprefixer grid: on */
display: grid;
}
Command line call:
lessc --autoprefix test.less test.css
Expected output:
div {
display: -ms-grid;
display: grid;
}
Actual output:
/* autoprefixer grid: on */
div {
/* autoprefixer grid: on */
display: grid;
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported lessc --autoprefix test.less test.css case using the shown input, then inspect how the plugin handles the Autoprefixer grid option and comments. Done means the grid setting is honored and the generated CSS contains display: -ms-grid followed by display: grid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100