style: Make appearance: button behave like auto.

As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
This commit is contained in:
Emilio Cobos Álvarez 2020-09-10 08:58:09 +00:00
parent ad0f63769c
commit 768db078ef
6 changed files with 3 additions and 48 deletions

View file

@ -1844,31 +1844,6 @@ pub enum Appearance {
Count,
}
/// The effect of `appearance: button` on an element.
#[derive(
Clone,
Copy,
Debug,
Eq,
Hash,
MallocSizeOf,
Parse,
PartialEq,
SpecifiedValueInfo,
ToCss,
ToComputedValue,
ToResolvedValue,
ToShmem,
)]
#[repr(u8)]
pub enum ButtonAppearance {
/// `appearance: button` means the element is rendered with button
/// appearance.
Allow,
/// `appearance: button` is treated like `appearance: auto`.
Disallow,
}
/// A kind of break between two boxes.
///
/// https://drafts.csswg.org/css-break/#break-between