Skip to content

Allow @property to be nested inside at-rules#1090

Merged
devongovett merged 1 commit intoparcel-bundler:masterfrom
thecrypticace:fix/issue-968
Jan 3, 2026
Merged

Allow @property to be nested inside at-rules#1090
devongovett merged 1 commit intoparcel-bundler:masterfrom
thecrypticace:fix/issue-968

Conversation

@thecrypticace
Copy link
Contributor

This updates things such that @property no longer errors when nested inside an at-rule.

Note: @property is not allowed inside style rules (i.e. it silently acts as if it does nothing in the browser) so I left the allowed_in_style_rule condition the way it was.

Question: test_with_options doesn't appear to emit warnings inside style rules — I would've expected it to. Assuming this is incorrect any chance you could provide an idea of where to look? (Since allowed_in_style_rule is already set up to return false I don't think it's that).

Happy to tweak things / add tests if need be.

Closes #968

@devongovett devongovett merged commit 28d7794 into parcel-bundler:master Jan 3, 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.

Unknown at rule: @property

2 participants