Skip to content

make color-interpolation-method optional and add fallback example - #44904

Open
bhaktiyadav08 wants to merge 2 commits into
mdn:mainfrom
bhaktiyadav08:patch-1
Open

make color-interpolation-method optional and add fallback example#44904
bhaktiyadav08 wants to merge 2 commits into
mdn:mainfrom
bhaktiyadav08:patch-1

Conversation

@bhaktiyadav08

@bhaktiyadav08 bhaktiyadav08 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

This PR resolves an issue where the color-mix() documentation does not state that the <color-interpolation-method> parameter can be omitted. Per the latest CSS specifications, this parameter is optional and defaults to the oklab color space.

Changes Made

  • Added the {{optional_inline}} macro to the <color-interpolation-method> parameter block.
  • Updated the parameter text to explicitly declare it is optional and explain the oklab fallback behavior.
  • Added a targeted code example showing a color-mix() operation with the interpolation method omitted.

Supporting Links

closes #44894

Added example for mixing colors without an interpolation method, explaining the default behavior.
@bhaktiyadav08
bhaktiyadav08 requested a review from a team as a code owner July 24, 2026 08:26
@bhaktiyadav08
bhaktiyadav08 requested review from hamishwillee and removed request for a team July 24, 2026 08:26
@github-actions github-actions Bot added Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed labels Jul 24, 2026
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

(comment last updated: 2026-07-26 17:12:43)

@bhaktiyadav08
bhaktiyadav08 requested a review from a team as a code owner July 26, 2026 17:10
@bhaktiyadav08
bhaktiyadav08 requested review from estelle and removed request for a team July 26, 2026 17:10
@hamishwillee
hamishwillee removed their request for review July 28, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interpolation-method is optional in color-mix(), missing compat data

2 participants