Open
Bug 1443284
Opened 6 years ago
Updated 1 year ago
percentage height in auto-height table cell in fixed-height table is treated as auto
Categories
(Core :: Layout: Tables, defect, P3)
Core
Layout: Tables
Tracking
()
NEW
Webcompat Priority | P3 |
People
(Reporter: jandem, Unassigned)
References
()
Details
(Whiteboard: [webcompat])
Attachments
(4 files)
In Chrome the menu is easier to use because the "hover area" for the menu items is bigger. I reduced it to the attached 26-line testcase. Note how in Chrome and Safari, the green element is much bigger than in Firefox. I don't know if this is a Gecko bug but filing just in case.
Updated•6 years ago
|
Component: CSS Parsing and Computation → Layout
Flags: needinfo?(dholbert)
![]() |
||
Comment 1•6 years ago
|
||
This sounded familiar, but the only related things I found so far are bug 601931 and bug 1386982, neither of which is really right. Resummarizing to make it clear what's actually going on here.
![]() |
||
Updated•6 years ago
|
URL: http://greetz.nl
Summary: greetz.nl menu doesn't work well in Firefox → percentage height in auto-height table cell in fixed-height table is treated as auto
![]() |
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
The previous testcase used 'display:flex' on the innermost element, but this happens for 'display:block' as well, as shown in this testcase. (For extra emphasis, I'm adding a red background on the fixed-height ancestor here. This red background is shown in Firefox, but in Chrome it gets covered up by the lime area.)
Updated•6 years ago
|
Attachment #8956211 -
Attachment description: testcase 2 (using "display:block" on innermost element) → testcase 3 (using "display:block" on innermost element, and with red background on ancestor that shows up in Firefox)
Comment 4•6 years ago
|
||
(In reply to Boris Zbarsky [:bz] (no decent commit message means r-) from comment #1) > This sounded familiar, but the only related things I found so far are > bug 601931 and bug 1386982, neither of which is really right. This actually looks quite a lot like bug 601931. Both that bug & this bug have a "height:100%" child of a table-cell -- and we disregard the percent height, whereas Chrome and Edge (and I assume WebKit) resolve it.
Flags: needinfo?(dholbert)
Comment 5•6 years ago
|
||
(Oh, I guess in bug 601931, the percent-height basis ultimately comes from another cell in the same row, whereas in this case it comes from the table itself. Not sure if that makes a difference or to what extent this table behavior is specced these days...)
Component: Layout → Layout: Tables
Updated•6 years ago
|
Whiteboard: [webcompat]
Updated•5 years ago
|
Comment 7•5 years ago
|
||
FWIW, for workaround purposes: if a site is hitting this bug, they may be able to get things working by: (a) adding an explicit "display:table-cell" wrapper (which we've already got in the testcases here) (b) styling that wrapper with "height:100%" (which I'm doing in this reference case). This resolves the "broken chain" of height resolution between the inner percent-height block and the outer fixed-height table. The inner block resolves its percent height against its cell (its containing block), so if the cell has a specified height (e.g. height:100%) which can be resolved against the table, then all is well.
![]() |
||
Updated•5 years ago
|
See Also: → https://webcompat.com/issues/23308
Comment 8•5 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Webcompat Priority: --- → ?
Comment 9•5 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•4 years ago
|
Webcompat Priority: ? → P3
Updated•1 year ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•