An Interest In:
Web News this Week
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
May 4, 2020 02:48 pm GMT
Original Link: https://css-tricks.com/no-comma-color-functions-in-css/
No-Comma Color Functions in CSS
There have been a couple of viral tweets about this lately, one from Adam Argyle and one from Mathias Bynes. This is a nice change that makes CSS a bit more clear. Before, every single color function actually needs two functions, one for transparency and one without, this eliminates that need and brings the syntax more-inline with CSS grammar overall.
Lemme make some code block from Mathias’ tweet here.
/* Old Syntax */rgb(0, 128, 255)rgba(0, 128, 255,
… Read article “No-Comma Color Functions in CSS”
The post No-Comma Color Functions in CSS appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/no-comma-color-functions-in-css/
Share this article:
Tweet
View Full Article