Skip to content

Element reflection references from inner to outer shadow roots #6063

Open

Description

@chrisosaurus

Context: #5401 (comment)

One of the core use cases for element reflection is to support an element within an inner shadow root ("darker") referencing an element held in an outer shadow root ("lighter"), as idrefs do not support this.

<div id="B"></div>
<div id="shadow-host">
# shadowRoot 
|  <div id="A"></div>
</div>
A.ariaFooElement = B; // outer tree
console.log(A.ariaFooElement);  // B

During the F2F meeting we also discussed a limited mechanism for the reverse (references from outer into inner), which has been broken out into a separate bug WICG/aom#169

The purpose of this bug is to check if we have consensus on supporting element reflection from an element within a shadow root to an element in outer dom or if there are objections to this aspect of the feature.

Activity

  1. changed the title [-]Element reflection references from darker to lighter shadow roots[/-] [+]Element reflection references from inner to outer shadow roots[/+] on Nov 10, 2020
  2. added
    topic: shadow
    topic: reflect
    on Nov 18, 2026
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

    topic: reflecttopic: shadow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions