Closed Bug 1925276 Opened 2 years ago Closed 9 months ago

xtralife.com - Search bar is no longer visible when starting to type

Categories

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

Firefox 133
Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:2, firefox131 wontfix, firefox133 wontfix, firefox150 fixed)

RESOLVED FIXED
150 Branch
Webcompat Priority P3
Webcompat Score 2
Tracking Status
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)

Attached video FF vs Chrome.mp4 —

Environment:
Operating system: Windows 11/10
Firefox version: Firefox 131.0 (release)/133

Preconditions:

  • Clean profile

Steps to reproduce:

  1. Navigate to: https://www.xtralife.com/
  2. Click on the search bar.
  3. 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

Severity: -- → S3
User Story: (updated)
Priority: -- → P3

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.

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

Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Webcompat Score: 6 → 5

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.

Keywords: leave-open
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/43a602785b40 https://hg.mozilla.org/integration/autoland/rev/25faaaebbd1d add a desktop-only CSS webcompat intervention for www.xtralife.com to fix search result positioning; r=denschub,webcompat-reviewers
Webcompat Score: 5 → 2
User Story: (updated)
Webcompat Priority: P2 → P3

The layout here seems a bit different, and the issue doesn't seem to happen anymore. Dan, can you confirm?

User Story: (updated)
Flags: needinfo?(dholbert)

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-results class (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 neither position:absolute nor 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.

Flags: needinfo?(dholbert) → needinfo?(twisniewski)
Flags: needinfo?(twisniewski)
Keywords: leave-open

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",
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: