Open Bug 1682439 Opened 5 years ago Updated 2 years ago

Implement CSS contrast-color() function

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: 709922234, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Blocks: css-color-5
Depends on: 1778445

It was resolved today to rename this function to contrast-color(). So renaming this bug as well.
(Also, the function got postponed to level 6 of the specification, though there is no draft yet so keeping it at level 5 for now.)

Sebastian

Summary: Implement CSS color-contrast() function → Implement CSS contrast-color() function

(In reply to Sebastian Zartner [:sebo] from comment #3)

(Also, the function got postponed to level 6 of the specificaction, though there is no draft yet so keeping it at level 5 for now.)

There is a draft of css-color-6: drafts.csswg.org/css-color-6. I guess the CSSWG just forgot to link it in their drafts overview (drafts.csswg.org). You can actually find it at the bottom of the drafts overview under "Other Documents".

Thanks for the hint, Benjamin! I've also asked the CSSWG to add it to the specifications list.

Sebastian

color-contrast() has been renamed to contrast-color() and syntax changed.

https://github.com/w3c/csswg-drafts/issues/7557
https://drafts.csswg.org/css-color-6/#resolving-contrast

(In reply to Woody Li from comment #6)

color-contrast() has been renamed to contrast-color()

Yes, I mentioned that earlier.

and syntax changed.

And the syntax discussion is still not finished, see https://github.com/w3c/csswg-drafts/issues/7937.

Sebastian

No longer blocks: css-color-5
You need to log in before you can comment on or make changes to this bug.