1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 14:30:42 -08:00
emacs/test/lisp/textmodes
Simen Heggestøyl bd9e8b31a1 Add command for cycling between CSS color formats
* lisp/textmodes/css-mode.el (css-mode-map): Add keybinding for
'css-cycle-color-format'.
(css--rgb-color): Add support for extracting alpha component.
(css--hex-alpha, css--color-to-4-dpc, css--named-color-to-hex)
(css--format-rgba-alpha, css--hex-to-rgb)
(css--rgb-to-named-color-or-hex): New functions.
(css-cycle-color-format): New command for cycling between color
formats.

* test/lisp/textmodes/css-mode-tests.el (css-test-color-to-4-dpc):
(css-test-named-color-to-hex, css-test-format-rgba-alpha)
(css-test-hex-to-rgb, css-test-rgb-to-named-color-or-hex)
(css-test-cycle-color-format, css-test-hex-alpha): New tests for the
changes mentioned above.

* etc/NEWS: Mention the new command.
2017-12-17 10:26:04 +01:00
..
css-mode-tests.el Add command for cycling between CSS color formats 2017-12-17 10:26:04 +01:00
dns-mode-tests.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
mhtml-mode-tests.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
reftex-tests.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
sgml-mode-tests.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
tildify-tests.el Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00