Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lossy selector processing can remove a meaningful space before an empty namespace prefix. This changes which elements are matched after minification.
In an XML DOM fixture with the prefix
sectionbound tourn:postcss-fixture:section, the original selector matched a no-namespace<input>inside the<section>element. The old output matched an unrelated<section:input>outside it. The fixed output matched the intended descendant again. This was verified independently with cssselect2 0.10.1.Keep a separator before the bare prefix in lossy output, including after an explicit combinator, so the tokenizer can still distinguish the combinator and prefix on a second pass. The regression tests cover descendant tags, universal selectors, explicit child combinators, and comments.
On macOS, Node 22.23.5 and 26.13.1 each passed 1,161 unit tests and five property groups. Actual PostCSS minification output remained stable on repeated processing. Typecheck and formatting of the changed tests passed. Hosted platform checks remain pending.
Implemented and tested with OpenAI Codex (
gpt-6.2-sol).