PixelsCommander / HTML-GL

Get as many FPS as you need and amazing effects by rendering HTML/CSS in WebGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Images not being displayed

Happy-Ferret opened this issue · comments

Expected behaviour:

Image and text should be rendered twice. Once as DOM representation, then once more as HTML-GL.

Observed behaviour:

DOM text and image are rendered properly, whereas the HTML-GL version omits the image.

Code to reproduce:

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>HTML GL demo</title>
</head>
<script src="node_modules/html-gl/dist/htmlgl.js"></script>
<body style="height: 1024px;">
<h1>HTML-DOM Test Scene</h1>
<br/>
<img src="cat.png"/>
<br/>

<html-gl renderer="webgl" style="opacity: 0;">
<div class="GLScene">
    <h1>HTML-GL Test Scene</h1>
    <img src="cat.png"></img>
</div>
</html-gl>
</body>
</html>

Browser:

Google Chrome Version 57.0.2987.133

Note:

Bug not reproducible in Firefox.