Closed Bug 1698772 Opened 3 years ago Closed 3 years ago

table elements in flex container are stretched to the maximum height

Categories

(Core :: Layout: Flexbox, defect)

Firefox 87
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr78 --- unaffected
firefox86 --- unaffected
firefox87 --- wontfix
firefox88 --- wontfix

People

(Reporter: r3dz0r, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

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

Steps to reproduce:

https://jsfiddle.net/g80wyu71/5/
version 87.0b9 (32) beta

Actual results:

tr and td has a big height

Expected results:

tr and td has not a big height

Component: Untriaged → Layout: Flexbox
Product: Firefox → Core

TYLin, could you take a look?

Flags: needinfo?(aethanyc)

I added another <div> into the .content flex container, and the rendering matches my expectation because both flex items should be stretched to the flex container's height in the cross axis. Bug 1674302 fixed <table> elements so that they can be stretched correctly.

Flags: needinfo?(aethanyc)

I'm close this bug as INVALID because stretching table flex items in the cross axis is an intentional behavior-change made to match the spec, and Google Chrome fixed the same bug that seems to ship in 91.

r3dz0r, thank you for filing the bug report with a minimal testcase so that we can identify the behavior easily!

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID

@TYLin

Dear Ting-Yu Lin,

I am still experiencing this issue in FF 87 and 88 and do not in Chrome 89.0.4389.128 or other browsers. Are there any steps for me to fix it if it is not a bug?

I am working on a big project, and this is the second time i get this error. The first one was together with r3dz0r (topic starter). I am 100% sure that our testing group will send me it again in a while. And I wanted to be ready to do something or to say soomething as my aliby

sincerelly, Pavel

In some reason I can't attach any screenshots, but I've managed it using sharing website https://snipboard.io/odJIxe.jpg

Flags: needinfo?(aethanyc)

(In reply to dr.rovico from comment #9)

@TYLin

Dear Ting-Yu Lin,

I am still experiencing this issue in FF 87 and 88 and do not in Chrome 89.0.4389.128 or other browsers.

Note that TYLin mentioned that Chrome's behavior-change is expected to ship in Chrome 91 (see comment 8).

Are there any steps for me to fix it if it is not a bug?

You should be able to basically get the old behavior back by adding align-self: flex-start to your <table> elements. e.g. you could add this to your stylesheet:

table { align-self: flex-start }
Flags: needinfo?(aethanyc)

(In reply to Daniel Holbert [:dholbert] from comment #10)

You should be able to basically get the old behavior back by adding align-self: flex-start to your <table> elements. e.g. you could add this to your stylesheet:

table { align-self: flex-start }

Thank you very much! As I can see it now, It helps!

Great! I'm glad to hear it.

Summary: Some problems with height in beta ff → table elements in flex container are stretched to the maximum height
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: