xtralife.com - Search bar is no longer visible when starting to type
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Priority:P3, Webcompat Score:2, firefox131 wontfix, firefox133 wontfix, firefox150 fixed)
People
(Reporter: ctanase, Assigned: twisniewski)
References
()
Details
(Keywords: webcompat:platform-bug, webcompat:site-report, webcompat:sitepatch-applied, Whiteboard: [webcompat-source:product])
User Story
platform:windows,mac,linux,android impact:annoyance configuration:general affects:all branch:release diagnosis-team:layout user-impact-score:20
Attachments
(1 file, 2 external files)
|
2.71 MB,
video/mp4
|
Details |
Environment:
Operating system: Windows 11/10
Firefox version: Firefox 131.0 (release)/133
Preconditions:
- Clean profile
Steps to reproduce:
- Navigate to: https://www.xtralife.com/
- Click on the search bar.
- Start typing anything.
Expected Behavior:
The search bar remains visible.
Actual Behavior:
The search bar disappears.
Notes:
- You can still type but it is not visible until you deselect the search bar
- Reproducible on the latest Firefox Release and Nightly
- Reproducible regardless of the ETP setting
- Works as expected using Chrome
Created from webcompat-user-report:7af9bf9a-6b13-4ab2-b4d5-6bf374cbf4e1
Updated•2 years ago
|
Comment 1•2 years ago
•
|
||
This is an issue with absolutely-positioned child of a (implicitly) display:inline containing block.
Specifically, here we have a <menu-desktop> custom element which has the (default) display:inline styling, and it has a descendant with:
.smart-search-results[_ngcontent-ng-c452535486] {
position: absolute;
top: 0;
left: 0;
z-index: 899;
background-color: #f0f2f2;
overflow: hidden;
width: 100%;
}
In Firefox, that descendant ends up positioning with respect to the top of the screen, presumably due to bug 489100 or something similar.
If I add display:block to the site's menu-desktop element, then this bug goes away.
Comment 2•2 years ago
|
||
I think we could sitepatch this, though the suggested display:block rule would need some testing to be sure there aren't side effects. (If menu-desktop were used in cases where it had some sort of inline-level sibling, then its display value being block rather than inline might change/break the rendering. At first glance it doesn't look like it causes any trouble on this front page, though.)
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
I think it's reasonably safe to try the intervention suggested, and if it causes other problems that we miss, we can easily refine it.
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•10 months ago
|
| Assignee | ||
Comment 7•9 months ago
|
||
The layout here seems a bit different, and the issue doesn't seem to happen anymore. Dan, can you confirm?
Comment 8•9 months ago
|
||
Confirmed, I can't repro anymore (with the intervention disabled).
Looking at the comment 1 vs. the page's current DOM, I see several key differences:
- I don't see any element with a
smart-search-resultsclass (with trailing 's') at all). I do see that the as-you-type search results are now<smart-search-result>elements, but that's a bit different (in name and structure) from the element that I was referencing in comment 1. - These
<smart-search-result>elements are neitherposition:absolutenor are they descendants of the (inline-level)<menu-desktop>element.
So I think we're good to remove the intervention and consider this FIXED or WFM upstream.
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 9•9 months ago
|
||
Comment 10•9 months ago
|
||
Comment 11•9 months ago
|
||
Reverted this because it was causing mochitests failures in browser_ua_helpers.js.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/extensions/webcompat/tests/browser/browser_ua_helpers.js | test_ua_helpers - getDeviceAppropriateChromeUA({"ua":"Linux","config":{"OS":"windows","noFxQuantum":true},"expected":"Mozilla/5.0 (Windows NT 11.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"}) - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
Comment 12•9 months ago
|
||
Comment 13•9 months ago
|
||
| bugherder | ||
Updated•8 months ago
|
Description
•