Fix/css4 rgb parsing
In CSS Level 4 rgba() and hsla() are aliases for rgb() and hsl() which now accept the alpha argument. This PR reflects this behavior and makes the parser understand the syntax. Source: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()
Example:
#css4-rgba {
background-color: rgb(242 245 249 / 45%);
}
+1 for this PR, encountered the issue today!
Bump
Hi, I've updated the PR to include the recommended stricter checks for rgb and hsl color modes.
Hi,
I am using this library for the first time in https://www.drupal.org/project/ui_styles/issues/3453784.
I am encountering the same issue has https://github.com/MyIntervals/PHP-CSS-Parser/issues/357.
And I confirm that the changes in this PR are fixing the bug.
Thanks!
What remains to be done to have it merged and shipped in a new release?