New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min/max-width/height, replaced elements #25207
Changes from 1 commit
a2c2b29
ce7e84b
999dd72
bf96988
c40583b
b73eb49
8996be3
80b2b5f
f43dc3a
e86222d
14ddf39
f09c14a
1fcdde9
1fa20e9
c07c980
2906722
be8df1d
a17db21
53ce714
File filter...
Jump to…
Replace `percent_resolved_*` functions with methods
- Loading branch information
| @@ -207,6 +207,15 @@ impl<LengthPercentage> MaxSize<LengthPercentage> { | ||
| pub fn none() -> Self { | ||
| MaxSize::None | ||
| } | ||
|
|
||
| /// Convert | ||
| #[cfg(not(feature = "gecko"))] | ||
| pub fn to_option(self) -> Option<LengthPercentage> { | ||
SimonSapin
Author
Member
|
||
| match self { | ||
| Self::LengthPercentage(lp) => Some(lp), | ||
| Self::None => None, | ||
| } | ||
| } | ||
| } | ||
|
|
||
| /// A generic `<length>` | `<number>` value for the `-moz-tab-size` property. | ||
Nit: Just name that
length, likeResult::ok?