electron / electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

Home Page:https://electronjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

select options rendered as a black blox when page has a media element [Linux electron v0.36.7]

loddit opened this issue · comments

If a media element (e.g. <audio> or <video>) added in page, or new Audio('some audo file') statement in sciprt, options of select tag become a black box.

page has a <audio> tag:
image

page without <audio> tag:
image

page source:

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <select>
      <option>Option 1</option>
      <option>Option 2</option>
      <option>Option 3</option>
      <option>Option 4</option>
    </select>
    <audio src="some audio file"></audio>
  </body>
</html>

This happens to me in Chrome, too. It didn't do it till I changed

Enable GPU rasterization. Mac, Windows, Linux, Chrome OS, Android
Use GPU to rasterize web content. Requires impl-side painting. #enable-gpu-rasterization

to Force enabled for all layers. No idea if related...

This has been reported several times in N1 (nylas/nylas-mail#1163, nylas/nylas-mail#1567). We do use the <audio> tag to play a few "incoming email" sounds, so that fits the description above. Would love if it were possible to fix.

We've got some issues in Avocode with Ubuntu further reading: avocode/avocode#1158 (comment)

closing due to abandonment.