mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Support -moz-min-font-size-ratio
This commit is contained in:
parent
de269b6b36
commit
ccccfb988a
7 changed files with 88 additions and 48 deletions
|
@ -734,6 +734,12 @@ impl Percentage {
|
|||
pub fn parse_non_negative(input: &mut Parser) -> Result<Self, ()> {
|
||||
Self::parse_with_clamping_mode(input, AllowedNumericType::NonNegative)
|
||||
}
|
||||
|
||||
/// 100%
|
||||
#[inline]
|
||||
pub fn hundred() -> Self {
|
||||
Percentage(1.)
|
||||
}
|
||||
}
|
||||
|
||||
impl Parse for Percentage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue