bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29456: [PATCH] Add command for cycling between CSS color formats


From: Eli Zaretskii
Subject: bug#29456: [PATCH] Add command for cycling between CSS color formats
Date: Mon, 27 Nov 2017 20:43:06 +0200

> From: Tom Tromey <tom@tromey.com>
> Cc: Tom Tromey <tom@tromey.com>,  simenheg@gmail.com,  29456@debbugs.gnu.org, 
>  monnier@iro.umontreal.ca
> Date: Mon, 27 Nov 2017 11:35:04 -0700
> 
> Eli> A comment will help, but I'm actually wondering why does css-mode need
> Eli> to use 12-bit or 16-bit per component RGB notation?  Why not use only
> Eli> 8-bit, as in #RRGGBB?  The problems only happen in converting 8-bit
> Eli> RGB notations to higher number of bits.
> 
> #RGB is specified by CSS, it is equivalent to #RRGGBB, and is often
> seen.  With css-color-4, #RGBA is also allowed.
> 
> Basically css-mode needs to understand the peculiarities of CSS syntax,
> which differs somewhat from other systems AFAIK.

Then I think there should be a prominent remark in the doc strings of
css-mode not to mix these functions with those from color.el, due to
this incompatibility.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]