www.wowow.co.jp - Search input is pushed off screen
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Priority:P3, Webcompat Score:1)
People
(Reporter: ksenia, Assigned: twisniewski)
References
(Depends on 1 open bug, )
Details
(4 keywords, Whiteboard: [webcompat-source:product])
User Story
platform:windows,mac,linux impact:feature-broken configuration:general affects:all branch:release diagnosis-team:layout user-impact-score:7.5
Attachments
(2 files)
Environment:
Operating system: Windows
Firefox version: Firefox 150.0.1 (release)
Preconditions:
- Clean profile
Steps to reproduce:
- Navigate to: https://www.wowow.co.jp/
- Observe the search field in the right top corner
Expected Behavior:
Search field within the page boundary
Actual Behavior:
Search field is pushed off screen
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:e5acfcba-e9b8-464b-b71f-08ded37bef9a
Updated•4 months ago
|
Updated•3 months ago
|
Comment 1•3 months ago
|
||
Safari has the same behaviour as us.
Daniel, do you know who's right?
Comment 2•3 months ago
|
||
The reduced testcase looks like maybe flex container intrinsic sizing isn't quite working out to properly hold all of the children (at the sizes that they end up flexing to).
Given that, I suspect this is a version of bug 1055887, an update to the flexbox intrinsic sizing algorithm, which went through some revisions but finally stabilized as of bug 1055887 comment 31 (2 years ago), which Chrome has shipped but Firefox and probably Safari have not.
Comment 3•3 months ago
•
|
||
Note, I can only reproduce the "Search field is pushed off screen" issue at certain viewport-sizes:
Up to a viewport-width of 1209px, there are no issues.
At viewport-width 1210px and above, the search button expands to be a full search field, which Chrome handles nicely and Firefox/Safari do not:
- In Chrome, the search field expands to the left, pushing its neighbors leftwards into space that would otherwise be blank. (no overflow)
- In Firefox/Safari, it expands to the right (and moves slightly to the right), and overflows off the right size of the page.
At viewport-width ~1764px and above, there's enough space that the search field finally fits on-screen again.
Comment 4•3 months ago
•
|
||
Here's a suggested intervention, which fixes the issue for me and doesn't have any side effects that I've noticed:
header .__localsearch {
width: clamp(180px, 16vw, 220px);
}
This is just repeating the flex-basis component of the flex shorthand from the site's following bit of CSS, but framing the value as a width (which is safe to do because generally width doesn't matter for a flex item in a horizontal flexbox that has a specified flex-basis, except to influence its intrinsic sizing contribution to the container, in Firefox and Safari -- that sole effect is the one that we want to benefit from here):
header .__localsearch {
-moz-box-flex: 0;
flex: 0 0 clamp(180px, 16vw, 220px);
container-type: inline-size;
display: flex;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
flex-flow: row;
height: 100%;
}
https://www.wowow.co.jp/assets/css/screen_ng.css
(One of the changes in bug 1055887 will be to directly use the flex-basis as part of the intrinsic sizing contribution in cases like these, which would get us the expected outcome here.)
Updated•3 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 5•2 months ago
|
||
Updated•2 months ago
|
Comment 7•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Description
•