GNOME Bugzilla – Bug 662818
clutter_color_from_string incorrectly documented and fails to parse hsla values.
Last modified: 2014-02-10 18:10:32 UTC
When looking for an alpha component, any white space trailing the l component would fail the conversion."hsla(0,100%,100% ,0.5)" would fail. Documentation for s and l components was incorrect; these have to be percentage values and must have a '%' character right after the number.
Created attachment 200073 [details] [review] Patch to fix color parsing and correct docs
Review of attachment 200073 [details] [review]: thanks for catching this; the patch looks okay to me, except for one little issue. ::: clutter/clutter-color.c @@ +597,3 @@ if (has_alpha) { + skip_whitespace (&str); could you please split this chunk into its own separate commit? we do prefer to have atomic changes in the history.
Created attachment 268704 [details] [review] color: Fix documentation of 'hsla()' parsing The documentation for the s and l components is incorrect; these have to be percentage values and must have a '%' character right after the number. Based on a patch by: Pablo Pissanetzky <pablo@trickplay.com>
Created attachment 268705 [details] [review] conform/color: Add more test coverage
Attachment 268704 [details] pushed as 33ebe92 - color: Fix documentation of 'hsla()' parsing Attachment 268705 [details] pushed as 92c0c77 - conform/color: Add more test coverage