Skip to content

Spatialized html with z=0 gets covered by parent traditional html #1340

Description

@ZincR

Duplicate check

  • I searched existing issues and discussions

Steps to reproduce

  <div>
    {/* Shows a spatialized HTML plane using a system background material. */}
    <span
      className="api-plane"
      style={{
        position: 'absolute',
        '--xr-background-material': 'translucent',
      }}
      enable-xr
    ></span>
  </div>

Expected vs Actual Behavior

Expected a translucent span nested within larger div, but outer div wins z-fighting and child span is not displayed.

Dev Environment

• Run Target (Vision Pro / Simulator / Browser): Simulator/Browser
• OS: Any
• Node.js version: Any
• WebSpatial & Vite versions: Any

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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