style: Defer to -moz-default-appearance when appearance is auto.

Differential Revision: https://phabricator.services.mozilla.com/D83429
This commit is contained in:
Cameron McCormack 2020-07-16 22:04:12 +00:00 committed by Emilio Cobos Álvarez
parent 01efe3a459
commit 7ae2f8602e

View file

@ -766,7 +766,13 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
use crate::properties::longhands::appearance::computed_value::T as Appearance;
use crate::properties::longhands::line_height::computed_value::T as LineHeight;
if self.style.get_box().clone_appearance() == Appearance::Menulist {
let box_ = self.style.get_box();
let appearance = match box_.clone_appearance() {
Appearance::Auto => box_.clone__moz_default_appearance(),
a => a,
};
if appearance == Appearance::Menulist {
if self.style.get_inherited_text().clone_line_height() == LineHeight::normal() {
return;
}