]> 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:11 +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).

lisp/net/shr.el

index 63e02d988ef0dbf43e6693672474685ab45ffb48..fc6fca7060e129d57bb0657acd243a563ecf069c 100644 (file)
@@ -1911,7 +1911,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))))))