Skip to content

Parse error on new CSS grid property #3092

Closed

Description

@DonCarnohan

The parser seems to not like when an area label comes before a css method like minmax.

grid-template-columns: [full-start] 1fr [content] minmax(100%, 1000px) 1fr [full-end];

The above is the example in my code. It is correct formatting for the new CSS Grid feature. Excluding it using ~" ... " causes the page to work. I just figured this shouldn't be necessary.

Activity

  1. seven-phases-max commented on Aug 4, 2017

    @seven-phases-max
    Member

    Not a surprise since this introduces a new grammar Less has no clue about. I'm adding "feature request" and "ready for implementation" labels with the following remark though:

    Note the particular syntax is a CSS draft (i.e. not a CSS yet), they are famous for changing syntax/grammar of new features several times before TR, so when preparing the PR please be ready to maintain your code for some time (down to rewriting everything from scratch in a half of a year) - Less in its current state can't afford to support a browser developers experiments on a daily basis.

    (For example see #2623)

  2. matthew-dean commented on Oct 10, 2017

    @matthew-dean
    Member

    CSS Grid is getting implemented un-prefixed in every major browser pretty much now. Support should be implemented. http://caniuse.com/#feat=css-grid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions