On the left side is my Electron application with a youtube video. On the right side is my application created with pygtk2 and webkit. Contrast is best with webkit. With Electron, the blackboard around the video diverges. How can I solve it?
The problem is that Electron uses webm on chromium. The webkit application in python uses mp4. Because it is a proprietary format, mp4 is not available on Electron. The solution I found to control this difference in contrast was in using css filters on the element in question.
-webkit-filter: contrast(120%);
Article addressing css filters