Closed Bug 1529324 Opened 6 years ago Closed 3 years ago

background-attachment fixed moves when inside position:fixed element

Categories

(Core :: Panning and Zooming, defect, P3)

49 Branch
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr60 --- wontfix
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- wontfix
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix

People

(Reporter: maixner.david, Unassigned)

References

Details

(Keywords: multiprocess, regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

Steps to reproduce:

  1. go to https://liveweave.com/7inLDR
  2. close developer tools - cannot be reproduced with dev tools open
  3. in preview window scroll down.
  4. click in page
  5. scroll up

Actual results:

When scrolling down, you can fixed attachment is scrolling
When scrolling up, you can see page behind "popup".

Expected results:

Background image shouldnt move when scrolling.
You shouldnt see page behind background-image.

Everything seems to be fine, when i have dev tools opened, or some moving element is present on page.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Version: 65 Branch → 57 Branch
Component: Untriaged → Layout: Block and Inline
Product: Firefox → Core

That page only shows "Hello Weaver!" here, which doesn't look like the screenshot?

Component: Layout: Block and Inline → Web Painting

I am sorry, it seems i cannot make it public.

Codepen link : https://s.codepen.io/masner/debug/jdRBza/VJrxxVjWVLBr

Note: if you use regular codepen view (editor), everything seems to be fine.

Also adding regular codepen link, so you can see source : https://codepen.io/masner/pen/jdRBza

Blocks: 1192910, 1298218
Component: Web Painting → Panning and Zooming
Keywords: multiprocess
Version: 57 Branch → 49 Branch

(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)

That page only shows "Hello Weaver!" here, which doesn't look like the
screenshot?

In this case, you should reload the page to see the testcase.

(In reply to maixner.david from comment #2)

Codepen link : https://s.codepen.io/masner/debug/jdRBza/VJrxxVjWVLBr

This has expired

(In reply to maixner.david from comment #3)

Also adding regular codepen link, so you can see source : https://codepen.io/masner/pen/jdRBza

This behaves normally

(In reply to maixner.david from comment #0)

  1. go to https://liveweave.com/7inLDR
  2. close developer tools - cannot be reproduced with dev tools open
  3. in preview window scroll down.
  4. click in page
  5. scroll up

I can see the problem here, but it goes away with WR enabled. Most likely a bug in AsyncCompositionManager/APZ code where we're not async-transforming the element properly.

Depends on: fixed-by-webrender
Priority: -- → P3
Attached file Testcase

Here is the testcase in plain form, bereft of expiry dates and other fluff.

Attachment #9048957 - Attachment mime type: text/plain → text/html

On this page, the fixed background is inside a scroll frame which is inside a position:fixed element. Not terribly surprising that we get this wrong.

Summary: background-attachment fixed moves in special case → background-attachment fixed moves when inside position:fixed element

Bulk change of P3 carryover bugs to wontfix for 68.

Happy to take a patch for 70 but since this is triaged and set to P3 priority I'm setting it as fix-optional.
That will remove the bug from weekly regression triage.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: