Open Bug 2000558 Opened 6 months ago Updated 6 days ago

www.jal.co.jp - Table is not rendered correctly, only the first column gets displayed

Categories

(Web Compatibility :: Site Reports, defect, P2)

Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:3, firefox145 affected, firefox146 affected, firefox147 affected)

ASSIGNED
Webcompat Priority P3
Webcompat Score 3
Tracking Status
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:

  1. Go to https://www.jal.co.jp/jp/ja/jalmile/use/jal/inter/routemiles.html
  2. Scroll down a little.
  3. Click on any of the drop downs from the list.
  4. 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

Attached image image.png

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The problem is the following site CSS.

@media (min-width: 740px) {
  .fixed_th1st table {
    width: 100% !important;
  }

}

Workaround:

  .fixed_th1st table {
    width: auto !important;
  }
Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 7
Priority: -- → P2
Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs][webcompat:japan]

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?

Probably bug 1184430. I'd defer the final decision to Daniel.

See Also: → 1184430
Attached file testcase 1

(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.

Attached file testcase 2

(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.)

Keywords: leave-open
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
User Story: (updated)
Webcompat Score: 7 → 4
Webcompat Priority: P2 → P3
User Story: (updated)
Webcompat Score: 4 → 3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: