Skip to content

Fix regression.#212

Merged
kaj merged 1 commit intomainfrom
fix-regression
Apr 18, 2025
Merged

Fix regression.#212
kaj merged 1 commit intomainfrom
fix-regression

Conversation

@kaj
Copy link
Owner

@kaj kaj commented Apr 18, 2025

If one but not all selectors in a selectorset contains a backref, the ones that don't should still be evaluated as childs of the parent.

body {
  &.simple p, section {
    margin: auto 2em;
  }
}

Should be evaluated to:

body.simple p, body section {
  margin: auto 2em;
}

@kaj kaj force-pushed the fix-regression branch from 7fa23c3 to 23c9b53 Compare April 18, 2025 20:34
If one but not all selectors in a selectorset contains a backref,
the ones that don't should still be evaluated as childs of the parent.

    body {
      &.simple p, section {
        margin: auto 2em;
      }
    }

Should be evaluated to:

    body.simple p, body section {
      margin: auto 2em;
    }
@kaj kaj force-pushed the fix-regression branch from 23c9b53 to c940840 Compare April 18, 2025 20:37
@kaj kaj merged commit a7b49c3 into main Apr 18, 2025
26 checks passed
kaj added a commit that referenced this pull request Apr 18, 2025
Released 2025-04-18.
Progress: 5988 of 13041 tests passed.

* Improve the relation of file names to module names regarding `-` and
  `_` characters.  Thanks `@purelinux@social.tchncs.de` for reporting.
* Allow vendor prefixes when checking for css-allowed at rules
  (e.g. `@-moz-document` should be allowed).
* Improved parsing of slash-separated lists.
* Avoid an unnecessary proc macro, making rsass the library
  [free of syn](https://github.com/fasterthanlime/free-of-syn)
  (Note; the cli and the proc macro still uses syn).
* Fixed a regression where one but not all selectors in a selectorset
  contained a backref (PR #212).
* Updated sass-spec test suite to 2025-03-17.
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