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

Add specs for load-css() #1417

Merged
merged 1 commit into from
Jun 29, 2019
Merged

Add specs for load-css() #1417

merged 1 commit into from
Jun 29, 2019

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jun 27, 2019

[skip dart-sass]

@nex3 nex3 requested a review from nshahan June 27, 2019 20:12
<===> nested/parent_selector/_other.scss
b {
// This & should *not* refer to the `a` in `input.scss`, because the CSS is
// resolved context-independently.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having trouble seeing what this is testing. If this did refer to the a in input.scss what would you expect output.css to contain?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it referred to a, it would be equivalent to

a {
  b {
    c & {x: y}
  }
}

which would compile to

c a b {
  x: y;
}

This is an issue that actually comes up in practice fairly frequently with nested @imports.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I see, thanks!

@nex3 nex3 merged commit e9b1764 into feature.use Jun 29, 2019
@nex3 nex3 deleted the load-css branch June 29, 2019 07:29
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.

2 participants