Skip to content

Detached ruleset processing returns incorrect selector #86

@webOS101

Description

@webOS101
  • Node Version: v6.8.0
  • NPM Version: 4.6.1
  • postcss-less Version: 1.1.0

LESS

.test({
	.hello {
		.test {
		}
	}

	.fred {
	}
})

JavaScript

postcss()
  .process(lessText, { syntax })
  .then(function (result) {
    console.log(result.root.nodes[0].selector)
});

Expected Behavior

Expected selector to not include mixin parameter

Actual Behavior

selector includes entire input less text (including parameter)

How can we reproduce the behavior?

Using code above

Note: It's possible I do not understand how the parsed output is supposed to look for the provided less content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions