CSS containment: content mucks with stacking layers |
||
Issue descriptionVersion: Canary 53.0.2763.0 canary (64-bit) OS: Mac 10.11.5 What steps will reproduce the problem? (1) visit http://jsbin.com/liwaqaqage/edit?html,output (2) click the pink button The pink button plays the ripple animation since `contain: content;` is added to the :host (better-button>. However, when you remove `contain: content;` from better-button, the .ripple no longer shows. The layering changes. z-index: 0 on better-button will also fix this (e.g. http://jsbin.com/nukupofiyi/edit?html,output)
,
Jun 9 2016
,
Jun 9 2016
Yes, but that's per spec afaict. The outer element with contain:content establishes a stacking context, and the element's background should be painted before descendants with negative z-index per https://www.w3.org/TR/2016/WD-CSS22-20160412/zindex.html#painting-order
,
Jun 9 2016
You may want to point that out on https://bugs.webkit.org/show_bug.cgi?id=158550#c1. I was told this was a blink bug. Feel free to close this issue.
,
Jun 9 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by r...@opera.com
, Jun 9 2016