less / less/less-plugin-autoprefix

Enable grid layouts

Open
#36 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.