@@ -442,6 +442,47 @@ Allows you to use case insensitive attributes.
442442|
443443[ Plugin documentation] ( https://github.com/Semigradsky/postcss-attribute-case-insensitive )
444444
445+ ## ` rgb() ` function (functional-notation)
446+
447+ Allows you to use its new syntax consisting of space-separated arguments and
448+ an optional slash-separated opacity.
449+
450+ You can also use number for color channels.
451+
452+ The alpha value accepts percentage as well as number and has been added to
453+ ` rgb() ` as optional argument. As a result, ` rgb() ` and ` rgba() ` are now
454+ aliases of each other.
455+
456+ ``` css
457+ div {
458+ background-color : rgb (100 222.2 100.9 / 30% );
459+ }
460+ ```
461+
462+ [ Specification] ( https://drafts.csswg.org/css-color/#rgb-functions )
463+ |
464+ [ Plugin documentation] ( https://github.com/dmarchena/postcss-color-rgb )
465+
466+ ## ` hsl() ` function (functional-notation)
467+
468+ Allows you to use its new syntax consisting of space-separated arguments and
469+ an optional slash-separated opacity.
470+
471+ ` hsl() ` now accepts angles (` deg ` , ` grad ` , ` rad ` , ` turn ` ) as well as numbers for
472+ hues and an optional percentage or number for alpha value. So, ` hsl() ` and
473+ ` hsla() ` are now aliases of each other too.
474+
475+ ``` css
476+ div {
477+ color : hsl (90deg 90% 70% );
478+ background-color : hsl (300grad 25% 15% / 70% );
479+ }
480+ ```
481+
482+ [ Specification] ( https://drafts.csswg.org/css-color/#the-hsl-notation )
483+ |
484+ [ Plugin documentation] ( https://github.com/dmarchena/postcss-color-hsl )
485+
445486## @todo
446487
447488Any omissions of the CSS specifications (even in draft) that are subject to be
0 commit comments