style: Unprefix -moz-fit-content

I'm not aware of any reason we shouldn't do this, as it is interoperable
with other browsers, and it causes compat issues from sites that forget
to use the prefixed version.

Note this removes some #[parse(aliases)]. These only affect devtools
autocomplete behavior, and we avoid autocompleting -moz-prefixed
keywords when possible, so even though it's a slight behavior change,
it's worth it.

Differential Revision: https://phabricator.services.mozilla.com/D126718
This commit is contained in:
Emilio Cobos Álvarez 2023-05-27 15:02:42 +02:00 committed by Oriol Brufau
parent d830ec8562
commit 6785ffea7b
3 changed files with 4 additions and 6 deletions

View file

@ -189,7 +189,7 @@ impl Size {
#[cfg(feature = "gecko")]
GenericSize::MinContent |
GenericSize::MaxContent |
GenericSize::MozFitContent |
GenericSize::FitContent |
GenericSize::MozAvailable |
GenericSize::FitContentFunction(_) => false
}

View file

@ -157,7 +157,7 @@ pub enum GenericSize<LengthPercent> {
MinContent,
#[cfg(feature = "gecko")]
#[animation(error)]
MozFitContent,
FitContent,
#[cfg(feature = "gecko")]
#[animation(error)]
MozAvailable,
@ -207,15 +207,13 @@ pub enum GenericMaxSize<LengthPercent> {
None,
#[cfg(feature = "gecko")]
#[animation(error)]
#[parse(aliases = "-moz-max-content")]
MaxContent,
#[cfg(feature = "gecko")]
#[animation(error)]
#[parse(aliases = "-moz-min-content")]
MinContent,
#[cfg(feature = "gecko")]
#[animation(error)]
MozFitContent,
FitContent,
#[cfg(feature = "gecko")]
#[animation(error)]
MozAvailable,

View file

@ -1235,7 +1235,7 @@ macro_rules! parse_size_non_length {
#[cfg(feature = "gecko")]
"max-content" | "-moz-max-content" => $size::MaxContent,
#[cfg(feature = "gecko")]
"-moz-fit-content" => $size::MozFitContent,
"fit-content" | "-moz-fit-content" => $size::FitContent,
#[cfg(feature = "gecko")]
"-moz-available" => $size::MozAvailable,
$auto_or_none => $size::$auto_or_none_ident,