Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Parse error on CSS grid template with named lines or minmax function, but not both #359

Open
Celti opened this issue Feb 23, 2018 · 2 comments

Comments

@Celti
Copy link

Celti commented Feb 23, 2018

This is a bit of a weird one. I'm building a CSS grid layout, starting with this bit of LESS:

#dokuwiki__site {
    display: grid;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    grid-template-rows:
        [header] 2em
        [content] 1fr
        [footer] 2em;
    grid-template-columns:
        [left] minmax(auto, min-content)
        [center] auto
        [right] minmax(auto, min-content);
    grid-gap: 1px;
}

That code gives a parse error on the grid-template-columns property. That parse error disappears if I remove either the grid line names, e.g.:

    grid-template-columns:
        [left] minmax(auto, min-content)
        [center] auto
        [right] minmax(auto, min-content);

...or if I remove the use of the CSS minmax() function, e.g.:

    grid-template-columns:
        [left] auto
        [center] auto
        [right] auto;

Neither option, of course, is quite what I want. less.js compiles all three just fine.

@Michaelsy
Copy link

Michaelsy commented May 7, 2018

A trick to insert (nearly) every unparsed code in LESSPHP:
dokuwiki/dokuwiki#2254 (comment)

@Rainbow-Spike
Copy link

~"screen CSS code from LESS parser"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants