Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
Josh-Cena authored Jun 7, 2025
commit 74c1a0295c156d0a4272e8d896665abab680f95b
8 changes: 4 additions & 4 deletions files/en-us/web/css/color_value/contrast-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The function produces only `white` or `black` value, depending on which value pr
## Syntax

```css
color-contrast(red)
color-contrast(var(--backgroundColor))
contrast-color(red)
contrast-color(var(--backgroundColor))
```

### Values
Expand Down Expand Up @@ -49,9 +49,9 @@ button {
```

```css hidden live-sample__button_text_ex
@supports not (color: color-contrast(red)) {
@supports not (color: contrast-color(red)) {
body::before {
content: "Your browser doesn't support the color-contrast() function.";
content: "Your browser doesn't support the contrast-color() function.";
background-color: wheat;
display: block;
width: 100%;
Expand Down