]> code.delx.au - gnu-emacs/commitdiff
Use the correct background color when filling nested <divs>
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Feb 2016 11:21:11 +0000 (22:21 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Feb 2016 11:21:30 +0000 (22:21 +1100)
* lisp/net/shr.el (shr-face-background): Return the first
background, because that's the one that's visible (bug#22680).

Backport:

(cherry picked from commit cad0bc70558f9c28c808711c5295dec9fc5ad6e5)

lisp/net/shr.el

index b36dd56f09cb36c6ab771d23b631b46c2d74ca50..e943132533368d93b36babd1ae131a787d58cc4f 100644 (file)
@@ -1791,7 +1791,8 @@ The preference is a float determined from `shr-prefer-media-type'."
            (let ((background nil))
              (dolist (elem face)
                (when (and (consp elem)
-                          (eq (car elem) :background))
+                          (eq (car elem) :background)
+                          (not background))
                  (setq background (cadr elem))))
              (and background
                   (list :background background))))))