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

Use logical selectors in nest. #189

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Use logical selectors in nest. #189

merged 1 commit into from
Jan 14, 2024

Conversation

kaj
Copy link
Owner

@kaj kaj commented Jan 14, 2024

This adds supports for sass backref (&) is LogicalSelectorSet and introduces a new type, CssSelectorSet, which is guaranteed to not contain backrefs.

Functions that are intended to not accept backrefs are moved to CssSelectorSet. The nest function is also created as a CssSelectorSet method, as the first argument may not contain backrefs. The other argument is a LogicalSelectorSet, though.

This adds supports for sass backref (`&`) is `LogicalSelectorSet` and
introduces a new type, `CssSelectorSet`, which is guaranteed to not
contain backrefs.

Functions that are intended to not accept backrefs are moved to
`CssSelectorSet`.  The `nest` function is also created as a
`CssSelectorSet` method, as the first argument may not contain
backrefs.  The other argument is a `LogicalSelectorSet`, though.
@kaj kaj merged commit 76ef3db into main Jan 14, 2024
24 checks passed
@kaj kaj deleted the logical-nest branch January 14, 2024 13:53
kaj added a commit that referenced this pull request May 19, 2024
Released 2024-05-19.
Progress: 5803 of 7673 tests passed.

* Improved support for the `selector.nest` function (PR #189).
* Moved `selector.append` to new selector implementation (PR #190).
* Implemented the `selector.simple-selectors` function (PR #191).
* Implemented the `selector.extend` function, except some of the more
  complicated corner cases (PR #194).
* Parse next-generation css selectors directly (rather than parsing as
  the old type and converting to the new).  Fixes the `selector.parse`
  function and improves support for other selector functions (PR #192).
* Some internal cleanup and improvements in the next-generation css
  selector implementation (which is currently internal and used only
  for selector functions, but should replace the old css selector
  implementation in release 0.29).
* Improvements in css-compatible functions that is evaluated if
  possible, but kept as css if the arguments _may_ make sense in a
  browser (PR #193).
* Improved no-args `math.random`, it now returns a f64 number.
* Some other minor code cleanup.
* MSRV is now 1.74 for rsass-cli (and still 1.61 for the lib and macros).
* Updated sass-spec test suite to 2024-05-16.
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