[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36315: 27.0.50; SVG transparency handling is inaccurate
From: |
Pip Cet |
Subject: |
bug#36315: 27.0.50; SVG transparency handling is inaccurate |
Date: |
Thu, 20 Jun 2019 20:26:53 +0000 |
Evaluate the following in emacs -Q:
(require 'svg)
(defun make-image (color)
(let ((svg (svg-create 100 100)))
(svg-rectangle svg 0 0 100 100 :fill color)
(svg-image svg)))
(set-frame-parameter (window-frame) 'background-color "black")
(insert (propertize " " 'display (make-image "#f00000")))
The expected result is a rectangle (on black background) of color
#f00000. The actual result is a rectangle of color #ef0000. For black
backgrounds, white is no longer representable.
This is related to bug #36304, but much easier to fix.
Patch attached.
0001-SVG-scale-color-values-properly.patch
Description: Text Data
- bug#36315: 27.0.50; SVG transparency handling is inaccurate,
Pip Cet <=