Skip to content

🐛 CSS contrast-color reported as unknown function #10536

Closed

Description

@tim-we

Environment information

Details
CLI:
  Version:                      2.4.16
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_PATH:                    unset
  BIOME_LOG_PREFIX_NAME:             unset
  BIOME_LOG_LEVEL:                   unset
  BIOME_LOG_KIND:                    unset
  BIOME_CONFIG_PATH:                 unset
  BIOME_THREADS:                     unset
  BIOME_WATCHER_KIND:                unset
  BIOME_WATCHER_POLLING_INTERVAL:    unset
  NO_COLOR:                     unset
  TERM:                         unset
  JS_RUNTIME_VERSION:           v26.2.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         npm/11.13.0

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.jsonc
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  false
  HTML full support enabled:    unset

Workspace:
  Open Documents:               0

What happened?

Using the CSS function contrast-color triggers the rule correctness/noUnknownFunction:

https://biomejs.dev/playground/?indentStyle=space&attributePosition=multiline&bracketSameLine=true&indentScriptAndStyle=true&lintRules=noUnknownFunction&tab=formatter&pane=Diagnostics&code=LgBmAG8AbwAgAHsACgAgACAAYwBvAGwAbwByADoAIABjAG8AbgB0AHIAYQBzAHQALQBjAG8AbABvAHIAKAByAGUAZAApADsACgB9AAoA&language=css

Expected result

contrast-color is available in all major browsers (Baseline 2026) and should therefore not be an unknown function.

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/contrast-color

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Activity

  1. added
    S-Needs triage
    on Jun 2, 2026
  2. added theissue type on Jun 2, 2026
  3. github-actions commented on Jun 2, 2026

    @github-actions
    Contributor

    ✅ Organic activity

    No automation signals detected in the analyzed events.

    View full analysis →

    This is an automated analysis by AgentScan

  4. added
    A-Linter
    L-CSS
    S-Bug-confirmed
    S-Good first issue
    S-Help-wanted
    and removed
    S-Needs triage
    on Jun 2, 2026
  5. tim-we commented on Jun 2, 2026

    @tim-we
    ContributorAuthor

    @siketyan I see you added S-God first issue and S-Help-wanted labels. I am happy to give this a go. Can you add me as an assignee?

  6. siketyan commented on Jun 2, 2026

    @siketyan
    Member

    @tim-we All yours!

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

Metadata

Metadata

Assignees

Labels

A-LinterL-CSSS-Bug-confirmedS-Good first issueS-Help-wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions