Skip to content

Error parsing @media and @page directives. #107

@jamesarosen

Description

@jamesarosen

The following won't parse:

@media all and (orientation:portrait) {
  ...
}

@media print {
  @page { margin: 0.5cm; }
}

Specifically, it yields

/myProject/vendor/less/parser.js:933
                    types = $(/^[^{]+/).trim();
                                        ^
TypeError: Cannot call method 'trim' of null
    at Object.directive (/myProject/vendor/less/parser.js:933:41)
    at $ (/myProject/vendor/less/parser.js:102:24)
    ...

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