Open Bug 1947105 Opened 28 days ago Updated 5 days ago

www.pexels.com - "Say Thanks!" pop-up is not fully visible after downloading something

Categories

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

Firefox 137
Desktop
Windows 10

Tracking

(Webcompat Score:3, Webcompat Priority:P2, firefox135 affected, firefox136 affected, firefox137 affected)

ASSIGNED
Webcompat Score 3
Webcompat Priority P2
Tracking Status
firefox135 --- affected
firefox136 --- affected
firefox137 --- affected

People

(Reporter: ctanase, Assigned: twisniewski)

References

(Depends on 2 open bugs, )

Details

(4 keywords, Whiteboard: [webcompat-source:web-bugs])

User Story

platform:windows,mac,linux,android
impact:content-missing
configuration:common
affects:all
branch:release
diagnosis-team:layout
user-impact-score:300

Attachments

(3 files)

Environment:
Operating system: Windows 11/10
Firefox version: Mozilla Firefox 134.0.2/135/137

Steps to reproduce:

  1. Go to https://www.pexels.com/photo/stylish-woman-relaxing-outdoors-in-autumn-fashion-29946756/
  2. Click on the "Free download" button.
  3. Observe the pop-up window.

Expected Behavior:
The "Say Thanks!" pop-up is fully visible.

Actual Behavior:
The "Say Thanks!" pop-up is not fully visible.

Notes:

  • 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/147794

Attached image image.png
OS: Windows 11 → Windows 10
Version: unspecified → Firefox 137

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

FWIW, Unset the following css is a workaround.

.Modal_overlay__9VSuC.Modal_positionContentCenter__QzDur {
  justify-content: center;
}

In Chrome, the popup thing is anchored on the top, so it'd be interesting to figure out the difference.

Severity: -- → S3
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Priority: -- → P2
Keywords: leave-open
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/757ea749d1c6 add a CSS intervention for pexels.com to ensure their thank-you popup is on-screen; r=denschub,webcompat-reviewers
Keywords: leave-open
Webcompat Score: 6 → 3
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0e5bbc4fe9ef linting fix for our CSS intervention for pexels.com; r=denschub,webcompat-reviewers
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/45c56395927b linting fix for our CSS intervention for pexels.com; r=denschub,webcompat-reviewers
Pushed by agoloman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e5b9e8372eb4 linting fix for our CSS intervention for pexels.com; r=denschub,webcompat-reviewers

So the behavior-difference here is that the thing-being-centered (via the CSS in comment 3) is shorter in Chrome than it is in Firefox. It's not quite anchored to the top, but rather it's just sized to exactly fit the container (and hence doesn't need to be centered).

That happens via this CSS:

.Modal_scrollWrapper__uU5Er {
[...]
  max-height: 100vh;
  max-height: -webkit-fill-available;
  max-height: -moz-available;
  max-height: stretch;

Chrome sees -webkit-fill-available which makes this Just Work.

If we enable support for that property, you might think it'd work in Firefox too, but it doesn't -- max-height: -moz-available; comes after that and hence overrides it, and unfortunately max-height: -moz-available; behaves like max-height:none (for now, pending bug 527285, though I'm tentatively planning to fix that after shipping -webkit-fill-available)

When we ship support for the stretch sizing keyword, that'll get us the right behavior here too.

So: the platform bug that'll get this working here is either bug 527285 or bug 1789477 (either one will make this work).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: