Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2473493003: [css-grid] mimax(auto, <flex>) should be serialized as <flex> (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 2d99858cd70a50d93294295a234d955d2b1dbba6..af0f0c3cf40f1fca8abf92558a84da81dabc8e3c 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -865,6 +865,12 @@ static CSSValue* specifiedValueForGridTrackSize(const GridTrackSize& trackSize,
return specifiedValueForGridTrackBreadth(trackSize.minTrackBreadth(),
style);
case MinMaxTrackSizing: {
+ if (trackSize.minTrackBreadth().isAuto() &&
+ trackSize.maxTrackBreadth().isFlex()) {
+ return CSSPrimitiveValue::create(trackSize.maxTrackBreadth().flex(),
+ CSSPrimitiveValue::UnitType::Fraction);
+ }
+
auto* minMaxTrackBreadths = CSSFunctionValue::create(CSSValueMinmax);
minMaxTrackBreadths->append(*specifiedValueForGridTrackBreadth(
trackSize.minTrackBreadth(), style));

Powered by Google App Engine
This is Rietveld 408576698