www.jal.co.jp - Table is not rendered correctly, only the first column gets displayed
Categories
(Web Compatibility :: Site Reports, defect, P2)
Tracking
(Webcompat Priority:P3, Webcompat Score:3, firefox145 affected, firefox146 affected, firefox147 affected)
People
(Reporter: ctanase, Assigned: twisniewski)
References
(Depends on 1 open bug, )
Details
(4 keywords, Whiteboard: [webcompat-source:web-bugs][webcompat:japan])
User Story
platform:windows,mac,linux,android impact:content-missing configuration:general affects:all branch:release diagnosis-team:layout user-impact-score:45
Attachments
(5 files)
Environment:
Operating system: Windows 10
Firefox version: Firefox 121.0/145/147
Steps to reproduce:
- Go to https://www.jal.co.jp/jp/ja/jalmile/use/jal/inter/routemiles.html
- Scroll down a little.
- Click on any of the drop downs from the list.
- Observe the table layout.
Expected Behavior:
The table is fully visible.
Actual Behavior:
The table is broken, only the first column gets displayed.
Notes:
- Reproduces regardless of the status of ETP
- Reproduces in firefox-nightly, and firefox-release
- Does not reproduce in chrome
Created from https://github.com/webcompat/web-bugs/issues/130020
| Reporter | ||
Updated•6 months ago
|
| Reporter | ||
Comment 1•6 months ago
|
||
Comment 2•6 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Comment 3•6 months ago
|
||
The problem is the following site CSS.
@media (min-width: 740px) {
.fixed_th1st table {
width: 100% !important;
}
}
Workaround:
.fixed_th1st table {
width: auto !important;
}
Updated•6 months ago
|
Updated•6 months ago
|
Comment 4•6 months ago
|
||
As far as I can tell, Chrome gets the same CSS so I suspect it's a bug/interop issue in our table layout. Perhaps there is an existing bug for this?
Comment 5•6 months ago
|
||
Probably bug 1184430. I'd defer the final decision to Daniel.
Comment 6•6 months ago
|
||
Comment 7•6 months ago
|
||
(In reply to Alice0775 White from comment #3)
The problem is the following site CSS.
This^ was a good insight! I'll share a bit more since I noticed another relevant bit of CSS. Here's a slightly broader quote of the site's CSS:
.fixed_th1st table {
width: auto !important;
min-width: max-content;
}
[...]
@media (min-width: 740px){
.fixed_th1st table {
width: 100% !important;
}
Dropping min-width: max-content seems to work around this bug as well. So it's the combination of width:100% with min-width: max-content that's causing trouble here, and removing either one seems to address this bug.
Comment 8•6 months ago
|
||
Comment 9•6 months ago
|
||
Comment 10•6 months ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #5)
Probably bug 1184430. I'd defer the final decision to Daniel.
I think that's accurate.
This is a bit interesting since Safari suffers from bug 1184430 as well, and yet they happen to render the testcases here without any giant content. I think that's just because they're ignoring the min-width: max-content declaration entirely here, though. (They don't seem to impose any content-based min-width on the table, despite that declaration; so they don't go down their version of the content-based-sizing codepath where bug 1184430 comes into play.)
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 11•5 months ago
|
||
Updated•5 months ago
|
Comment 12•5 months ago
|
||
Comment 13•5 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•5 months ago
|
Updated•5 months ago
|
Updated•3 months ago
|
Updated•6 days ago
|
Description
•