{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/9671","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/9671/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/9671/comments","events_url":"https://api.github.com/repos/electron/electron/issues/9671/events","html_url":"https://github.com/electron/electron/issues/9671","id":233542750,"number":9671,"title":"Window: backgroundColor does not match CSS color","user":{"login":"bpasero","id":900690,"avatar_url":"https://avatars3.githubusercontent.com/u/900690?v=4","gravatar_id":"","url":"https://api.github.com/users/bpasero","html_url":"https://github.com/bpasero","followers_url":"https://api.github.com/users/bpasero/followers","following_url":"https://api.github.com/users/bpasero/following{/other_user}","gists_url":"https://api.github.com/users/bpasero/gists{/gist_id}","starred_url":"https://api.github.com/users/bpasero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpasero/subscriptions","organizations_url":"https://api.github.com/users/bpasero/orgs","repos_url":"https://api.github.com/users/bpasero/repos","events_url":"https://api.github.com/users/bpasero/events{/privacy}","received_events_url":"https://api.github.com/users/bpasero/received_events","type":"User","site_admin":false},"labels":[{"id":520323169,"url":"https://api.github.com/repos/electron/electron/labels/bug%20:beetle:","name":"bug :beetle:","color":"fbca04","default":false},{"id":97403606,"url":"https://api.github.com/repos/electron/electron/labels/platform/macOS","name":"platform/macOS","color":"c7def8","default":false},{"id":612349168,"url":"https://api.github.com/repos/electron/electron/labels/version/1.7.x","name":"version/1.7.x","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-06-05T09:53:52Z","updated_at":"2018-05-12T11:54:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"* Electron version: 1.7.x\r\n* Operating system: macOS 10.12.5\r\n\r\n### Expected behavior\r\n\r\nSetting a window `backgroundColor` should produce the same visual result as setting it via CSS.\r\n\r\n### Actual behavior\r\n\r\nThere is a slight flicker from where the background color from CSS kicks in.\r\n\r\n### How to reproduce\r\n\r\n* create a window with background color: `new BrowserWindow({ width: 800, height: 600, backgroundColor: '#DDDDDD' })`\r\n* in that window set the same background color via CSS: `<body style=\"background-color: #DDDDDD;\">`\r\n* `loadURL` of the window with a slight timeout to see the difference\r\n```javascript\r\nsetTimeout(function () {\r\n    win.loadURL(url.format({\r\n        pathname: path.join(__dirname, 'index.html'),\r\n        protocol: 'file:',\r\n        slashes: true\r\n    }))\r\n}, 2000);\r\n```\r\n\r\nThe following video shows the difference clearly:\r\n\r\n![panel-red](https://cloud.githubusercontent.com/assets/900690/26779427/9775cdb2-49e5-11e7-9ec3-b8dbfa600c7a.gif)\r\n\r\nCould it be that the window `backgroundColor` somehow uses a different color space compared to the renderer one via CSS?"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/388549995","html_url":"https://github.com/electron/electron/issues/9671#issuecomment-388549995","issue_url":"https://api.github.com/repos/electron/electron/issues/9671","id":388549995,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T11:54:33Z","updated_at":"2018-05-12T11:54:33Z","author_association":"CONTRIBUTOR","body":"I'm still seeing this with Electron 2.0"}}
{"actor":{"display_login":"sindresorhus"}}