Skip to content

Element order changes after exiting VR #165

@WoodNeck

Description

@WoodNeck

If the canvas element is not the only child within its parent / not a last element, the element order can be changed after exiting from the polyfilled XR session.

This can cause an issue where element order is important like some elements should be displayed above other elements.

Of course, this can be bypassed by applying CSS z-index or order to elements, but it would be nice if the polyfill preserve the elements' order.

before

image

in xr session

image

after

image

<canvas> is appended as the last element

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions