Skip to content

Fix unintended bubbling of inherited object property names - #175

Merged
ai merged 1 commit into
postcss:mainfrom
feritcemkahraman:fix-custom-at-rule-inherited-names
Oct 10, 2026
Merged

ai merged 1 commit into
postcss:mainfrom
feritcemkahraman:fix-custom-at-rule-inherited-names

Conversation

@feritcemkahraman

Copy link
Copy Markdown
Contributor

Custom at-rules named constructor or toString are currently treated as built-in bubbling rules because the lookup table inherits Object.prototype. This moves their content out of its original scope even when they are not configured to bubble.

Use a prototype-free lookup table. Regression tests cover preserving those custom blocks and honoring an explicit bubble configuration.

Validation: the added regression fails before the fix; all 76 tests pass afterwards with node node_modules/better-node-test/bin.js --coverage 100 (100% line/function coverage). Oxlint reports the existing no-redeclare error in unchanged index.d.ts; neither changed file has a lint diagnostic.

@ai
ai merged commit 88f217b into postcss:main Oct 10, 2026
3 checks passed
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.

2 participants