GNU bug report logs - #36304
27.0.50; request: switch to the superior HTML #RGB convention for colors

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Thu, 20 Jun 2019 11:24:01 UTC

Severity: wishlist

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#36304: closed (27.0.50; request: switch to the superior HTML
 #RGB convention for colors)
Date: Sat, 27 Jul 2019 11:14:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 27 Jul 2019 14:12:56 +0300
with message-id <83y30jlohz.fsf <at> gnu.org>
and subject line Re: bug#36304: 27.0.50; request: switch to the superior HTML #RGB convention for colors
has caused the debbugs.gnu.org bug report #36304,
regarding 27.0.50; request: switch to the superior HTML #RGB convention for colors
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
36304: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36304
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pip Cet <pipcet <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50;
 request: switch to the superior HTML #RGB convention for colors
Date: Thu, 20 Jun 2019 11:22:24 +0000
This is a request for an incompatible change, which I think will
improve some matters significantly:

The Web convention, used by HTML and SVG, is that #fff is parsed as
#ffffff, and represents "white". The X convention, discouraged for
years, is to accept #fff as shorthand for #f0f0f0, and #ffffff as
shorthand for #ff00ff00ff00, with no way of specifying the whitest
color as six (or three) hex digits.

We're still using the X convention. It's time to switch. The HTML
convention is what virtually everyone would expect these days, it
allows specifying "white" concisely, and it's what we use in some
contexts, such as when rendering SVGs.

Not fixing this would result in somewhat hard-to-track-down color bugs
all over the place, particularly when combining images and text or
using non-X window systems or non-8-bit color depths (again, "#ffffff"
isn't the same as "white" on those!)

There's no reason, as far as I can see, to burden everyone with a
deficiency of one specific graphics backend, in perpetuity,
particularly since the colors will stay similar but not quite the
same.

This issue was discussed years ago as bug #8402, so feel free to mark
this as a duplicate if it helps.


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Pip Cet <pipcet <at> gmail.com>
Cc: andrewjmoreton <at> gmail.com, 36304-done <at> debbugs.gnu.org
Subject: Re: bug#36304: 27.0.50;
 request: switch to the superior HTML #RGB convention for colors
Date: Sat, 27 Jul 2019 14:12:56 +0300
> From: Pip Cet <pipcet <at> gmail.com>
> Date: Mon, 22 Jul 2019 02:46:16 +0000
> Cc: 36304 <at> debbugs.gnu.org
> 
> Rebased and revised patch attached.

Thanks, pushed to the master branch.

Note that the test file wasn't in the correct directory; I moved it.


This bug report was last modified 5 years and 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.