web-platform-tests / web-platform-tests/interop

CSS if() function

Open
#1,343 1 comment 80 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

focus-area-proposal
Dominant language
JavaScript
Stars
524
Forks
35
Avg merge
1d 4h
Merged PRs (30d)
10

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSS Values and Units Level 5 if() notation specification linked in the issue, then inspect nearby web-platform-tests for comparable CSS value features. Add coverage for the specified CSS if() behavior and verify that the tests exercise the feature described for Chrome, Firefox, and Safari.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
testing, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.