Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for fix of parent selector with a multiline rule #933

Merged
merged 2 commits into from Dec 29, 2016

Conversation

maciej-ka
Copy link
Contributor

@maciej-ka maciej-ka commented Sep 28, 2016

Related to sass/sass#1976

maciej-ka added a commit to maciej-ka/sass that referenced this pull request Sep 28, 2016
Fixes newline placement when the parent selector is used with a
multiline rule.

```scss
.foo,
.bar {
  .baz & {
    color: red;
  }
}
```
Before
```css
.baz .foo, .baz
.bar {
  color: red; }
```
After
```css
.baz .foo,
.baz .bar {
  color: red; }
```

Closes: sass#1976
Tests: sass/sass-spec#933
@maciej-ka maciej-ka changed the title Test for fix of parent with newline Test for fix of parent selector with a multiline rule Sep 29, 2016
maciej-ka added a commit to maciej-ka/sass that referenced this pull request Dec 18, 2016
Fixes newline placement when the parent selector is used with a
multiline rule.

```scss
.foo,
.bar {
  .baz & {
    color: red;
  }
}
```
Before
```css
.baz .foo, .baz
.bar {
  color: red; }
```
After
```css
.baz .foo,
.baz .bar {
  color: red; }
```

Closes: sass#1976
Tests: sass/sass-spec#933
It was written for nested output, but we use expanded by default now.
@nex3 nex3 merged commit 924189d into sass:master Dec 29, 2016
nex3 pushed a commit to sass/sass that referenced this pull request Dec 29, 2016
Fixes newline placement when the parent selector is used with a
multiline rule.

```scss
.foo,
.bar {
  .baz & {
    color: red;
  }
}
```
Before
```css
.baz .foo, .baz
.bar {
  color: red; }
```
After
```css
.baz .foo,
.baz .bar {
  color: red; }
```

Closes: #1976
Tests: sass/sass-spec#933
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants