Warren Seine 71e7f130bc
Generalize color normalization (#1479) (#1483)
Following #1478, a bug was found related to transparent backgrounds. As Excalidraw only supports `transparent` as a valid transparent color, this commits generalizes the use of canvas to normalize color values.

It changes a few details:
- `rgba()` or `hsla()` syntaxes are not accepted anymore
- pasting values goes through the same normalization step, avoiding invalid values
- color validation is not regex-based anymore
- any CSS-valid black color is now accepted (e.g. previously, `rgb(0,0,0)` was rejected)
2020-04-24 11:06:54 -07:00
..
2020-04-22 21:52:14 +03:00
2020-04-20 15:05:39 +02:00
2020-04-11 01:09:29 +03:00
2020-03-23 16:38:41 -07:00
2020-04-21 17:42:59 +03:00
2020-04-16 14:23:39 +02:00
2020-03-23 16:38:41 -07:00
2020-01-02 11:03:48 -08:00
2020-02-11 23:19:43 +01:00
2020-01-24 12:04:54 +02:00