Skip to content

Enable grid layouts #36

Description

@bjoern-tantau

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions