Skip to content

🐛 fix(css): close raw fallback blocks - #1645

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/css-fixpoint-20261106
Nov 6, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/css-fixpoint-20261106

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Malformed CSS with an unclosed math function could gain closing braces on every minify pass. The minifier now closes the nested blocks in its raw argument fallback, so repeated minification settles after the first pass.

The regular function renderer closes nested functions as it prints them. Raw arguments retain their original tokens and need a closure count that includes those nested functions.

An invalid math operator can make the minifier copy function arguments
verbatim. At EOF, its closing pass skipped nested functions that were still
open, so each pass added more closers.

Count all open blocks when closing raw arguments.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 6, 2026
@codspeed

codspeed Bot commented Nov 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 582 untouched benchmarks
⏩ 32 skipped benchmarks1


Comparing gaborbernat:fix/css-fixpoint-20261106 (3ba73a0) with main (7282f12)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat enabled auto-merge (squash) November 6, 2026 19:41
@gaborbernat
gaborbernat merged commit b57cb31 into tox-dev:main Nov 6, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant