Issue metadata
Sign in to add a comment
|
Glitches when combining opacity + hexadecimal background-color
Reported by
leonardo...@gmail.com,
Sep 29 2017
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: 1 - Have a backdrop div with opacity CSS Property between 0.1 and 0.9 and a background-color value specified in hexadecimal syntax. 2 - Have a div above the backdrop containing an superior z-index value <div class="container"> <div class="backdrop"> </div> <div class="dialog"> </div> </div> Ps: - Unfortunatelly, I cannot reproduce this issue in other scenarios, but it seems to be something related with webkit's rendering, since it is solved by changing some properties with alternate (but equivelent) values. What is the expected behavior? Transparent dark backdrop What went wrong? Random glitches Did this work before? N/A Chrome version: 61.0.3163.100 Channel: stable OS Version: 10.0 Flash Version: When I changed the background-color from hexadecimal to RGBA syntax, the glitches disappear. I've also sent an issue at react-toolbox repo explaining some details of this bug, but the nature and behaviour of this suggests that is something related with the browser. https://github.com/react-toolbox/react-toolbox/issues/1695 Perhaps it has some relation with Chrome's 61 new feature: "CSS color values can now be 8- and 4-digit hex colors of the format #RRGGBBAA and #RGBA" https://blog.chromium.org/2017/08/chrome-61-beta-javascript-modules.html Computed CSS properties for .container: align-items:center; box-sizing:border-box; color:rgb(103, 106, 108); display:flex; font-family:Roboto, Helvetica, Arial, sans-serif; font-size:13px; height:734.4px; justify-content:center; line-height:18.5714px; position:fixed; text-rendering:optimizeLegibility; text-size-adjust:100%; top:0px; width:1536px; z-index:200; -webkit-box-align:center; -webkit-box-pack:center; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:rgba(0, 0, 0, 0); Computed CSS properties for .backdrop: background-color:rgb(0, 0, 0); bottom:0px; box-sizing:border-box; color:rgb(103, 106, 108); display:block; font-family:Roboto, Helvetica, Arial, sans-serif; font-size:13px; height:734.4px; left:0px; line-height:18.5714px; opacity:0.6; pointer-events:all; position:fixed; text-rendering:optimizeLegibility; text-size-adjust:100%; top:0px; transition-delay:0s; transition-duration:0.3s; transition-property:opacity; transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1); width:1536px; z-index:auto; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:rgba(0, 0, 0, 0); Computed CSS properties for .dialog: background-color:rgb(255, 255, 255); border-bottom-left-radius:2px; border-bottom-right-radius:2px; border-top-left-radius:2px; border-top-right-radius:2px; box-shadow:rgba(0, 0, 0, 0.3) 0px 19px 60px 0px, rgba(0, 0, 0, 0.22) 0px 15px 20px 0px; box-sizing:border-box; color:rgb(103, 106, 108); display:flex; flex-direction:column; font-family:Roboto, Helvetica, Arial, sans-serif; font-size:13px; height:424px; line-height:18.5714px; max-height:705.024px; max-width:1474.56px; opacity:1; text-rendering:optimizeLegibility; text-size-adjust:100%; transform:matrix(1, 0, 0, 1, 0, 0); transition-delay:0.06s; transition-duration:0.3s, 0.3s, 0.3s; transition-property:opacity, transform, -webkit-transform; transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1), cubic-bezier(0.4, 0, 0.2, 1), cubic-bezier(0.4, 0, 0.2, 1); width:330px; z-index:999; -webkit-box-direction:normal; -webkit-box-orient:vertical; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
,
Oct 4 2017
Hi @hdodda ! I've create a sample page to reproduce this issue, but the glitch didn`t happened. It seems to be related with some other component from the original page. See attached images.
,
Oct 4 2017
Thank you for providing more feedback. Adding requester "hdodda@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 4 2017
I have the same problem in my website. I'm using jQuery UI dialog and removing opacity and changing background-color from #000000 to rgba(0,0,0,0.6) fixed the issue. The strange thing is that only on some computers I get these glitches (see attached image). These are the information of a computer where I have the issue: Edition: Windows 10 Enterprise Version: 1511 OS Build: 10586.1045 Processor: Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz 2.40GHz Installed RAM: 4,00 GB System type: 64-bit operating system, x64-based processor
,
Oct 4 2017
Found possible duplicates at: issue 770701 issue 770733
,
Oct 5 2017
The issue seems to be similar to issue id: 770733. Hence, merging into the issue id; 770733. Please feel free to undupe the same if not the case. Thanks...!!
,
Oct 10 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by hdodda@chromium.org
, Oct 3 2017Labels: Needs-Feedback Needs-Triage-M61