Skip to content

CSS @function #1357

Open
Open

Description

@bigandy

Description

The @function CSS at-rule enables defining CSS custom functions. Once defined, a custom function can be called using the syntax (for example, --my-function(30px, 3)) within any property value.

This feature has shipped in Chrome 139, with Safari including it in Safari Tech Preview 249.

Specification

https://www.w3.org/TR/css-mixins-1/#function-rule

web-feature

https://web-platform-dx.github.io/web-features-explorer/features/function/

Test Links

https://wpt.fyi/results/css/css-mixins/functions?label=experimental&label=master&aligned

Additional Signals

Activity

  1. github-actions commented on Sep 4, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature @function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions