blackwells.co.uk - The "Sort By" drop-down is not working
Categories
(Web Compatibility :: Site Reports, defect, P2)
Tracking
(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)
|
3.57 KB,
text/html
|
Details |
Environment:
Operating system: Windows 10
Firefox version: Firefox 135.0 (release)
Preconditions:
- Clean profile
Steps to reproduce:
- Navigate to: https://blackwells.co.uk/bookshop/search/publisher/Games%20Workshop
- Click on the "Sort by" drop-down
- 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
Comment 1•1 year ago
|
||
The dropdown has min-height: fit-content;, but it does not fit the content!
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
(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.
Comment 4•1 year ago
•
|
||
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.
Comment 5•1 year ago
•
|
||
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.
Description
•