Back to Interop 2027 proposals

CSS if() function

Proposed by web-platform-tests/interop#1343
Participate in this proposal on GitHub

Direct 1-click actions are temporarily unavailable for Interop proposals pending repository app approval. Cast your vote by adding a +1 reaction or join the discussion directly on GitHub.

Open issue on GitHub

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.

Discussion on GitHub (0)

No comments on GitHub yet

Be the first developer to share technical feedback or use cases on this Interop proposal.

Join discussion on GitHub