homebrewery.naturalcrit.com - Some elements get overlapped and rendering warning is displayed
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Priority:P3, Webcompat Score:1, firefox144 affected, firefox145 affected, firefox146 affected)
People
(Reporter: ctanase, Assigned: twisniewski)
References
(Depends on 1 open bug, )
Details
(4 keywords, Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed])
User Story
user-impact-score:0 platform:windows,mac,linux,android impact:unsupported-warning configuration:general affects:all branch:release diagnosis-team:layout autowebcompat-repro-status:success autowebcompat-repro-chrome-mask-fixed:true autowebcompat-repro-channels:nightly,stable,esr autowebcompat-repro-report-os:all autowebcompat-diagnosis-status:success autowebcompat-intervention-status:success
Attachments
(3 files, 1 external file)
Environment:
Operating system: Linux/Windows 10
Firefox version: Firefox 144.0/146
Steps to reproduce:
- Go to https://homebrewery.naturalcrit.com/
- Check the bottom of the first page (on the right split)
- Content is overlapped.
Expected Behavior:
Content is rendered correctly.
Actual Behavior:
Elements are overlapped. (Render warning also displayed)
Notes:
- Looks like this was reported and investigated previously, check: https://github.com/webcompat/web-bugs/issues/81930
- Reproduces regardless of the status of ETP
- Reproduces in firefox-nightly, and firefox-release
- Does not reproduce in chrome
Created from https://github.com/webcompat/web-bugs/issues/185455
| Reporter | ||
Comment 1•1 year ago
|
||
| Reporter | ||
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 3•1 year ago
|
||
Possible intervention, maybe? https://github.com/webcompat/web-bugs/issues/81930#issuecomment-919649097
But let's treat this as a layout issue for now, check why there are rendering differences. If we can fix those, we can approach the site and ask them to remove the warning since it would then work. :)
Updated•2 months ago
|
Updated•2 months ago
|
Comment 4•2 months ago
|
||
In Firefox the site shows a "Render Warnings — Built for Chrome" popup that overlays the top-right of the rendered brew preview, telling users other browsers are untested. Chrome never gets this popup. The element-overlap part of the report no longer reproduces: on the current site version (V3.22.0) the \column break is honoured and page 1 lays out identically in both browsers.
Comment 5•2 months ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Comment 6•1 month ago
|
||
Root cause analysis generated by autowebcompat bot:
The site checks the browser by name. The Homebrewery RenderWarnings React component (in /main/main-wGRLnuvI.js) has a warnings.chrome check that runs if (!(/Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor))). When that test fails, it renders a .renderWarnings popup reading "Built for Chrome — Other browsers have not been tested for compatibility…". Firefox's UA string doesn't contain "Chrome" and its navigator.vendor is "", so the popup always shows in Firefox and covers the top-right of the brew preview. Chrome passes the check, so it never sees the popup.
This is not a difference in how the browser engines work. The page layout matches in both browsers: there is no overlap, and the \column break is honoured. The overlap in the original report is not reproducible on the current site version.
Evidence:
In the site bundle: warnings:{chrome:function(){if(!(/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)))return ... 'Built for Chrome ' ... 'Other browsers have not been tested for compatibility...'
Reproduction script, 3 runs per browser. Firefox: unsupportedWarning:true, warningOverlapsPreview:true, 0/3 working. Chrome: unsupportedWarning:false, 3/3 working.
Page 1 layout matched in both browsers: pageWidth:816, headingColumnX:425 (the #v3-vs-legacy heading is in the right column), columnBreakHonoured:true. No engine layout difference was seen, so there is no reduced testcase.
If you'd like to provide feedback on diagnosis, please use the 👍 or 👎 reaction.
Updated•1 month ago
|
| Assignee | ||
Comment 7•1 month ago
|
||
Let's try to make a hide_messages or CSS-only intervention here to remove the banner, and try to avoid a UA override.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 8•1 month ago
|
||
Homebrewery's RenderWarnings component shows a "Built for Chrome" popup over the brew preview to any browser whose UA doesn't contain "Chrome" and whose navigator.vendor isn't "Google Inc". This uses hide_messages to remove the .renderWarnings popup when it contains "Built for Chrome", avoiding a UA override.
Updated•1 month ago
|
Updated•23 days ago
|
Updated•22 days ago
|
| Assignee | ||
Updated•22 days ago
|
Comment 10•21 days ago
|
||
| bugherder | ||
| Assignee | ||
Updated•20 days ago
|
Updated•19 days ago
|
Description
•