mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
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:
parent
9d3876bda0
commit
01efe3a459
3 changed files with 12 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue