Closed Bug 1349571 Opened 9 years ago Closed 8 years ago

[css-grid] Incorrect height of track calculation when child element has position absolute

Categories

(Core :: Layout, defect, P2)

52 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla55

People

(Reporter: tiny.word8619, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: testcase, Whiteboard: [fixed by bug 1356820])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 Steps to reproduce: The grid row track height of rows containing children with absolute positioning is calculated incorrectly, this issue is concerning the solution for Fluid Responsive Youtube Video. Codepen example: http://codepen.io/cstegeman/pen/mWXKVL Fluid YouTube solution talked about in this bug: https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php The same example works fine in Chrome 57. Actual results: The height of the grid element containing the youtube video becomes 0 Expected results: The height of the first row should have the same height as the youtube video
Component: Untriaged → Layout
Product: Firefox → Core
Thanks for your bug report. The patch in bug 1356820 fixes this bug too. (I'm hoping to get that fix shipped in Firefox 54)
Assignee: nobody → mats
Status: UNCONFIRMED → ASSIGNED
Depends on: 1356820
Ever confirmed: true
Keywords: testcase
OS: Unspecified → All
Priority: -- → P2
Hardware: Unspecified → All
Fixed by bug 1356820. I've added a reftest covering this case too.
Status: ASSIGNED → RESOLVED
Has STR: --- → yes
Closed: 8 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed by bug 1356820]
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: