style: Add unprefixed appearance property and make -moz-appearance and -webkit-appearance be aliases.

Differential Revision: https://phabricator.services.mozilla.com/D83428
This commit is contained in:
Cameron McCormack 2020-07-16 22:04:11 +00:00 committed by Emilio Cobos Álvarez
parent 9d3876bda0
commit 01efe3a459
3 changed files with 12 additions and 10 deletions

View file

@ -763,10 +763,10 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
where
E: TElement,
{
use crate::properties::longhands::_moz_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;
if self.style.get_box().clone__moz_appearance() == Appearance::Menulist {
if self.style.get_box().clone_appearance() == Appearance::Menulist {
if self.style.get_inherited_text().clone_line_height() == LineHeight::normal() {
return;
}