mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
style: Support unprefixed min-content and max-content.
Support unprefixed min-content and max-content and treat the prefixed version as aliases for 1. width, min-width, max-width if inline-axis is horizontal, and 2. height, min-height, max-height if inline-axis is vertical, and 3. inline-size, min-inline-size, max-inline-size, and 4. flex-basis. Besides, update the test cases to use unprefixed max-content and min-content. Differential Revision: https://phabricator.services.mozilla.com/D7536
This commit is contained in:
parent
3ed525f6c9
commit
b7e728abd0
1 changed files with 4 additions and 2 deletions
|
@ -985,8 +985,10 @@ pub type NonNegativeLengthOrPercentageOrNormal = Either<NonNegativeLengthOrPerce
|
|||
)]
|
||||
#[repr(u8)]
|
||||
pub enum ExtremumLength {
|
||||
MozMaxContent,
|
||||
MozMinContent,
|
||||
#[parse(aliases = "-moz-max-content")]
|
||||
MaxContent,
|
||||
#[parse(aliases = "-moz-min-content")]
|
||||
MinContent,
|
||||
MozFitContent,
|
||||
MozAvailable,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue