From b7e728abd0b4d6445487acbcd9c640d615fc1a00 Mon Sep 17 00:00:00 2001 From: Boris Chiou Date: Tue, 18 Dec 2018 18:47:37 +0000 Subject: [PATCH] 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 --- components/style/values/computed/length.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/style/values/computed/length.rs b/components/style/values/computed/length.rs index 7592c3a2cae..240b5ceb1ee 100644 --- a/components/style/values/computed/length.rs +++ b/components/style/values/computed/length.rs @@ -985,8 +985,10 @@ pub type NonNegativeLengthOrPercentageOrNormal = Either