Closed Bug 1949374 Opened 1 year ago Closed 1 year ago

blackwells.co.uk - The "Sort By" drop-down is not working

Categories

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

Firefox 135
Desktop
Windows 10

Tracking

(Webcompat Priority:P2, Webcompat Score:6)

RESOLVED WORKSFORME
Webcompat Priority P2
Webcompat Score 6

People

(Reporter: railioaie, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:needs-sitepatch, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:product])

User Story

platform:windows,mac,linux,android
impact:feature-broken
configuration:general
affects:all
branch:release
diagnosis-team:layout
user-impact-score:300

Attachments

(1 file)

Environment:
Operating system: Windows 10
Firefox version: Firefox 135.0 (release)

Preconditions:

  • Clean profile

Steps to reproduce:

  1. Navigate to: https://blackwells.co.uk/bookshop/search/publisher/Games%20Workshop
  2. Click on the "Sort by" drop-down
  3. Observe

Expected Behavior:
The drop-down is working correctly

Actual Behavior:
The drop-down is not working

Notes:

  • Reproducible on the latest Firefox Release and Nightly
  • Reproducible regardless of the ETP setting
  • Works as expected using Chrome

Created from webcompat-user-report:2734d9d9-c26f-4181-a1c1-a3a8ec2d5043

Summary: blackwells.co.uk - The "Sort By" drop down is not working → blackwells.co.uk - The "Sort By" drop-down is not working

The dropdown has min-height: fit-content;, but it does not fit the content!

Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Priority: -- → P2

(In reply to Dennis Schubert [:denschub] from comment #1)

The dropdown has min-height: fit-content;, but it does not fit the content!

Indeed. We treat fit-content as the initial value in the height axis; and for min-height, that means it gets treated as auto which (for min-height) essentially means 0. So it has no effect.

That, combined with the fact that it has height:0, makes that piece of the content collapse away to nothing, basically.

I think fit-content is in fact supposed to work as it does in Chrome, but our behavior matches an old version of the spec. Bug 1672559 is filed on implementing the new behavior.

We could deploy the following sitepatch here, just promoting their min-height request to be a height:

.dropdown__trigger:hover > .dropdown__inner {
  height: fit-content;
}

That gives the expected result here. Notably there's then a stacking-order issue with a red "$ 3.68 off" sale badge for the book that's directly below the dropdown-menu -- that badge stomps on top of the menu -- but that happens in Chrome as well, so that part isn't something we need to worry about as a Firefox-specific problem.

Looks like the site made the change that I suggested in comment 4, basically - hooray!

twisniewski noticed that the site was working, so I took a quick look and found this in their styles (newlines added for readability):

.dropdown__trigger:hover>.dropdown__inner{
padding:10px 20px;
padding:1rem 2rem;
border:1px solid #ddd;
min-width:200px;
height:fit-content;
transition:height .6s
}

https://blackwells.co.uk/resources/styles/styles.css?v=23.0.0

If I change height back to min-height in devtools (the way it used to be), then the bug comes back. But with height as it stands in the site's current styles quoted above, this is WFM.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: