Relative Color Syntax — Basic Use Cases
Mustafa Selman ?nal
Mustafa Selman ?nal
Frontend Web Developer |HTML5 | CSS3 | JavaScript | React.js | Redux | SASS | Bootstrap | Material.UI | Python | Linux | MySQL | Git | GitHub | APIs | Agile | Jira | SDLC | OOP |
As of last month, Firefox 128’s support of the relative color syntax means we’ve now got support across the board. I’m excited about that as it’s an extremely powerful way to manipulate colors in CSS. Plus it was part of Interop this year so that is further proof that is trucking along nicely.
The syntax with generic names looks like this:
color-function(from origin-color channel1 channel2 channel3 / alpha)