New issue
Advanced search Search tips

Issue 906909 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 20
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Flex item child not inheriting height from flex-grow

Reported by rmconigl...@gmail.com, Nov 20

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Steps to reproduce the problem:
1. Create flex div container with height set to 500px or any value
2. Add flex item div with flex-grow: 1, flex-shrink: 1 and flex-basis: auto
3. Add child element div to flex item with height: 100% or height: inherit
4. Observe the child element div does not inherit height of the flex item

What is the expected behavior?
The height of the child should be the height of the flex item by setting flex-grow: 1, flex-shrink: 1 and flex-basis: auto on the flex item. This only works when using the shorthand flex: 1 or flex 1 1 auto

What went wrong?
The child height is 0 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 70.0.3538.102  Channel: n/a
OS Version: 10.0
Flash Version:
 
chromeTest.html
1.3 KB View Download
in Step 1, flex container should also have flex-flow: column; width: 100% and flex item should have width:100%
See live example here https://jsfiddle.net/rmc33/4eL7bk9d/3/
My mistake this works as expected with   

  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;

This is not a bug sorry.
Labels: Needs-Triage-M70
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET
Status: WontFix (was: Unconfirmed)
rmconigliaro@ Thanks for the update.

As per comment #3, marking this issue as WontFix as this is not a bug.
Please feel free to raise a new issue if any bugs are observed on the latest Chrome builds.

Thanks..

Sign in to add a comment