Background attachment local leads to incorrectly opaque background layer when compositing a scroller. |
|||
Issue descriptionVersion: 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.
,
Jul 26 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e3a98dc7050d4e575967177edaca49742024e8c8 commit e3a98dc7050d4e575967177edaca49742024e8c8 Author: flackr <flackr@chromium.org> Date: Tue Jul 26 19:03:36 2016 Adjust background clip when local attachment is used with non-visible overflow. BUG= 625882 TEST=compositing/backgrounds/local-background.html Review-Url: https://codereview.chromium.org/2127663002 Cr-Commit-Position: refs/heads/master@{#407871} [add] https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8/third_party/WebKit/LayoutTests/compositing/backgrounds/local-background-expected.html [add] https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8/third_party/WebKit/LayoutTests/compositing/backgrounds/local-background.html [modify] https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8/third_party/WebKit/Source/core/layout/LayoutBox.cpp [modify] https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8/third_party/WebKit/Source/core/layout/LayoutBox.h [modify] https://crrev.com/e3a98dc7050d4e575967177edaca49742024e8c8/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
,
Jul 30 2016
,
Aug 30 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by flackr@chromium.org
, Jul 5 2016