New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 725803 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 568847
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

CSS: Multiple backgrounds, different background-attachment, different devicePixelRatio

Reported by stefan.b...@gmail.com, May 24 2017

Issue description

Chrome Version       : 58.0.3029.110 (Official Build) (64-bit)
URLs (if applicable) : http://dabblet.com/gist/20205b5fcdd834461e80
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: OK
    Firefox: OK
         IE: ?

What steps will reproduce the problem?
(1) scroll the demo container

What is the expected result?
at the top of the container are 2 background linear gradients on top of each other. since they have different background-attachment properties, one gradient should scroll away while the other should stay.

What happens instead?
working as expected on screen with devicePixelRatio = 1
NOT working on screen with devicePixelRatio = 2:
on screen with devicePixelRatio = 2 just nothing happens during scrolling. all background gradient are keeping their initial position.

Please provide any additional information below. Attach a screenshot if
possible.
as said above, the only difference I can see, is devicePixelRatio.
my setup is a macbook pro 13,3 inch together with apple thunderbolt display 27 inch. using the same chrome window on each different display shows different results.
I've also attached a short demo file "background.html".
 
background.html
3.0 KB View Download
Components: Blink
Labels: Needs-Triage-M58

Comment 2 by junov@chromium.org, May 25 2017

Components: -Blink Blink>Scroll

Comment 3 by junov@chromium.org, May 25 2017

Components: Blink>Paint
Cc: flackr@chromium.org yigu@chromium.org trchen@chromium.org
So with devicePixelRatio = 2  the scroller is actually composited so this is a bug in composited scrolling logic. 

There are a few well known issues on how we handle the background-attachement: fixed | scroll on compositor. I suspect this might be a duplicate of  issue 568847 . cc'ing a few folks who can triage it further.
Labels: -Needs-Triage-M58 PaintTeamTriaged-020170525 BugSource-User
Mergedinto: 568847
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment