mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Make appearance: button
behave like auto on various elements.
Differential Revision: https://phabricator.services.mozilla.com/D83434
This commit is contained in:
parent
f03883774b
commit
862b7d1249
6 changed files with 49 additions and 4 deletions
|
@ -639,6 +639,25 @@ ${helpers.predefined_type(
|
|||
gecko_ffi_name="mDefaultAppearance",
|
||||
)}
|
||||
|
||||
// A UA-sheet only property that controls the effect of `appearance: button`
|
||||
// on the element: `-moz-button-appearance: allow` means the element is rendered
|
||||
// with button appearance, and `-moz-button-appearance: disallow` is treated
|
||||
// like `appearance: auto`.
|
||||
//
|
||||
// https://github.com/w3c/csswg-drafts/issues/5174 proposes to simplify `button`
|
||||
// to mean `auto` unconditionally, at which point this property can be removed.
|
||||
${helpers.predefined_type(
|
||||
"-moz-button-appearance",
|
||||
"ButtonAppearance",
|
||||
"computed::ButtonAppearance::Allow",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
needs_context=False,
|
||||
spec="Internal (not web-exposed)",
|
||||
enabled_in="ua",
|
||||
gecko_ffi_name="mButtonAppearance",
|
||||
)}
|
||||
|
||||
${helpers.single_keyword(
|
||||
"-moz-orient",
|
||||
"inline block horizontal vertical",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue