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

Refactor extend. #143

Merged
merged 14 commits into from
May 28, 2017
Merged

Refactor extend. #143

merged 14 commits into from
May 28, 2017

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented May 28, 2017

This fixes many outstanding issues with extend. Dart Sass still doesn't
always generate the same output as Ruby Sass, but it should have correct
semantics. In particular, as of this commit it should obey the two laws
laid out in sass/sass#324.

See sass/sass-spec#1126

nex3 and others added 14 commits May 27, 2017 17:47
This allows us to share more logic if selector lists overlap.
Also rename it Extension.
Rather than extending each selector individually and unifying them with
the un-extended rest, this extends everything in one step and unifies in
the next.
This seems to be substantially faster, at least on the VM.
This means that extensions that match but fail to unify are valid, but
we think that's okay; see sass/sass#2250.
A simple selector's source specificity should only come from its
original complex selector, and shouldn't be modified by extensions.
This allows us to support cases where an extension's extender is itself
extended after it's declared but before it's used.
@nex3 nex3 merged commit 890b9d1 into master May 28, 2017
@nex3 nex3 deleted the extend-cleanup branch May 28, 2017 21:03
nex3 pushed a commit that referenced this pull request May 10, 2023
Bumps [sass_api](https://github.com/sass/dart-sass) from 4.2.1 to 5.0.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](sass_api/4.2.1...sass_api/5.0.0)

---
updated-dependencies:
- dependency-name: sass_api
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
jgerigmeyer added a commit to oddbird/dart-sass that referenced this pull request May 16, 2023
* main: (162 commits)
  Move source and test files to namespaced subdirectories
  Update Dart Sass version and release
  Update Dart Sass version and release
  Update Dart Sass version and release
  Update Dart Sass version and release
  Update Dart Sass version and release
  Update Dart Sass version and release
  Revert "Remove workaround for dart-lang/setup-dart#59 (sass#151)" (sass#153)
  Update Dart Sass version and release
  Update Dart Sass version and release
  Remove workaround for dart-lang/setup-dart#59 (sass#151)
  Update Dart Sass version and release
  Update Dart Sass version and release
  Fix qemu releases (sass#149)
  Update Dart Sass version and release
  Bump sass_api from 4.2.1 to 5.0.0 (sass#143)
  Bump meta from 1.8.0 to 1.9.0 (sass#144)
  Bump grinder from 0.9.2 to 0.9.3 (sass#145)
  Add missing setup-dart step in qemu release (sass#147)
  Use buf instead of protoc to compile protobufs (sass#146)
  ...
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.

1 participant