Skip to content

Images not being displayed #84

@Happy-Ferret

Description

@Happy-Ferret

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions