-
-
Notifications
You must be signed in to change notification settings - Fork 987
feat(css): add support for the @function CSS at rule
#8839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ematipico
merged 20 commits into
biomejs:next
from
ryan-m-walker:feat/css-function-at-rule
Jan 28, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
eda4182
feat(css): add support for CSS @function
ryan-m-walker 002a023
add main parsing functionality
ryan-m-walker cbcd1a8
setup formatters
ryan-m-walker d1beec3
cleanup and fix typo
ryan-m-walker ed6ed7f
regen codegen code
ryan-m-walker 2abd657
update formatter
ryan-m-walker 09bd15e
fix default value parsing issue
ryan-m-walker e536237
cleanup
ryan-m-walker 687c90a
accept snapshots
ryan-m-walker 2ff04d3
more tests
ryan-m-walker 6430f87
better error recovery and clean up
ryan-m-walker 6802e9e
remove unused bogus node
ryan-m-walker e15d2a9
add changeset
ryan-m-walker d2e9d87
update generated files
ryan-m-walker c15c72b
cleanup
ryan-m-walker 85d7397
Update .changeset/witty-cats-see.md
ryan-m-walker a87f2f5
address coderabbit feedback
ryan-m-walker abd18d0
update no unknown property rule to support function syntax
ryan-m-walker b57906b
update snapshot tests
ryan-m-walker d50037d
use right prop name
ryan-m-walker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| "@biomejs/biome": minor | ||
| --- | ||
|
|
||
| Added support for parsing and formatting the CSS `@function` at-rule from the [CSS Mixins Module Level 1](https://drafts.csswg.org/css-mixins-1/#function-rule) specification. Addresses issue [#8184](https://github.com/biomejs/biome/issues/8184). | ||
|
|
||
| ```css | ||
| @function --transparent(--color <color>, --alpha <number>: 0.5) returns <color> { | ||
| result: oklch(from var(--color) l c h / var(--alpha)); | ||
| } | ||
| ``` |
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.