graphite-api icon indicating copy to clipboard operation
graphite-api copied to clipboard

Inconsistency in color spec enforcement

Open KristianLyng opened this issue 9 years ago • 0 comments

For graphite-web I can/could use bgcolor=222222 instead of bgcolor=#222222, but not so for gridline colors.

For graphite-api 1.1.3 both require the # prefix, but colorList still doesn't.

The examples might also suggest encoding it with %23 as that is generally required for browsers too.

So far this is my roundoup:

gridLineColor: Requires # all over bgcolor: requires # in graphite-api 1.1.3 but not graphite-web 0.9.15 fgcolor: requires # in graphite-api 1.1.3 but not graphite-web 0.9.15 colorList: # is optional for both

I'm guessing this means color-parsing isn't as generic as it should be.

Since graphite-web 0.9.15 is also inconsistent, I suppose there's a choice to be made: Match the inconsistency or fix them. Right now, it's neither one or the other.

KristianLyng avatar Nov 06 '16 17:11 KristianLyng