mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
ad0f63769c
commit
768db078ef
6 changed files with 3 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue