New issue
Advanced search Search tips

Issue 660690 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 79180



Sign in to add a comment

[css-grid] min-/max-sizes are ignored when finding the used flex fraction with an indefinite free space

Project Member Reported by mpalmg...@mozilla.com, Oct 30 2016

Issue description

Version: 56.0.2897.0 (Official Build) dev (64-bit)
OS: Linux

What steps will reproduce the problem?
(1)load the attached testcase
(2)
(3)

What is the expected output?
see 2nd attached screenshot (from Firefox Nightly)

What do you see instead?
see 1st attached screenshot


Relevant spec text:
https://drafts.csswg.org/css-grid/#algo-flex-tracks
"
If using this flex fraction would cause the grid to be smaller than the grid container’s min-width/height (or larger than the grid container’s max-width/height), then redo this step, treating the free space as definite and the available grid space as equal to the grid container’s content box size when it’s sized to its min-width/height (max-width/height).
"
 
chrome-bug-row-flex-sizing-max-height.html
1.3 KB View Download
chrome-bug-row-flex-sizing-max-height.png
6.3 KB View Download
firefox-row-flex-sizing-max-height.png
5.5 KB View Download

Comment 1 by e...@chromium.org, Oct 31 2016

Status: Available (was: Untriaged)

Comment 2 by r...@igalia.com, Nov 2 2016

Blocking: 79180
Cc: svil...@igalia.com jfernan...@igalia.com r...@igalia.com
Labels: OS-All

Comment 3 by svil...@igalia.com, Nov 2 2016

Right, that paragraph was never implemented.

Comment 4 by svil...@igalia.com, Nov 2 2016

Status: Assigned (was: Available)
I think I have a fix for this.
Yaa
Pada 2 Nov 2016 23:42, "svil… via monorail" <
monorail+v2.2596945094@chromium.org> menulis:
Pada 3 Nov 2016 00:22, "Meri Bkn" <meri.bkn0001@gmail.com> menulis:
Project Member

Comment 7 by bugdroid1@chromium.org, Nov 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94

commit ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94
Author: svillar <svillar@igalia.com>
Date: Tue Nov 08 18:16:59 2016

[css-grid] Use min|max-sizes to compute flex fraction

The min|max-sizes must be used to compute the flex fraction for indefinite
free spaces. According to the spec "If using this flex fraction would cause
the grid to be smaller than the grid container’s min-width/height (or larger
than the grid container’s max-width/height), then redo this step, treating
the free space as definite and the available grid space as equal to the grid
container’s content box size when it’s sized to its min-width/height
(max-width/height)."

This only affects heights because during layout widths are properly
constrained by min|max-width restrictions.

BUG= 660690 

Review-Url: https://codereview.chromium.org/2480493002
Cr-Commit-Position: refs/heads/master@{#430654}

[add] https://crrev.com/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94/third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-sizing-columns-min-max-width.html
[add] https://crrev.com/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94/third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-sizing-rows-min-max-height.html
[modify] https://crrev.com/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
[modify] https://crrev.com/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94/third_party/WebKit/Source/core/layout/LayoutGrid.h

Comment 8 by svil...@igalia.com, Nov 9 2016

Status: Fixed (was: Assigned)
Should be fixed now.
Ya
Pada 2 Nov 2016 16:45, "svil… via monorail" <
monorail+v2.2596945094@chromium.org> menulis:

min-/max-sizes are ignored when finding the used flex fraction with an
indefinite free space

Sign in to add a comment