Skip to content

CSS if() function #1343

Open
Open

Description

@dsenneff

Description

The CSS if() function allows devs to use conditional logic to set property values.

This feature has shipped in Chrome 137, with some level of development happening in Firefox and Safari.

Specification

https://drafts.csswg.org/css-values-5/#if-notation

web-feature

No response

Test Links

No response

Additional Signals

No response

Activity

  1. github-actions commented on Sep 3, 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 if()

  2. bigandy commented on Nov 19, 2026

    @bigandy

    There's a Firefox Issue according to which planning has started.

  3. phantomxx29474 commented on Nov 20, 2026

    @phantomxx29474

    There's a Firefox Issue according to which planning has started.

    Interesting. Hopefully, it will there soon.

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