mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Defer to -moz-default-appearance when appearance is auto.
Differential Revision: https://phabricator.services.mozilla.com/D83429
This commit is contained in:
parent
01efe3a459
commit
7ae2f8602e
1 changed files with 7 additions and 1 deletions
|
@ -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::appearance::computed_value::T as Appearance;
|
||||||
use crate::properties::longhands::line_height::computed_value::T as LineHeight;
|
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() {
|
if self.style.get_inherited_text().clone_line_height() == LineHeight::normal() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue