奇怪的face继承inherit

我定义了一个face,继承于mode-line

(defface test-face `((t (:inherit mode-line :height 0.9 :box nil)))
  "Test face."
  :group 'mode-line)

但是我想要获取background参数时,backgroundunspecified

(face-attribute 'test-face :background)

而直接获取mode-linebackground是可以得到background"#49483E"

(face-attribute 'mode-line :background)

想知道这是什么原因

找到原因了 :joy: 需要

(face-attribute 'test-face :background nil t)