diff --git a/lisp/net/shr.el b/lisp/net/shr.el index b36dd56f09c..e9431325333 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -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))))))