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

Issue 625882 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Background attachment local leads to incorrectly opaque background layer when compositing a scroller.

Project Member Reported by flackr@chromium.org, Jul 5 2016

Issue description

Version: 51.0.2704.106 (Official Build) (64-bit)
OS: Linux

What steps will reproduce the problem?
(1) Load the attached file or http://output.jsbin.com/xoyagud

What is the expected output?
The background should be gray (50% black on top of white).

What do you see instead?
Instead the background is solid black. This is happening because the check in CompositedLayerMapping for whether the background is opaque[1] thinks that the background clip is border-box (i.e. the opaque background color should be drawn under the border) but when you set background attachment local the background is clipped to the content box. See

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp?sq=package:chromium&dr=CSs&l=328 
[2] "Because the scrollable area does not include the border area, for scrollable elements the ‘border-box’ value of ‘background-clip’ may be treated the same as ‘padding-box’." https://www.w3.org/TR/css3-background/#the-background-attachment
Please use labels and text to provide additional information.

 
local-background.html
214 bytes View Download

Comment 3 by flackr@chromium.org, Jul 30 2016

Status: Fixed (was: Started)
Labels: Hotlist-Threaded-Rendering

Sign in to add a comment