Skip to content

Unclear how to treat implicit root with elements in detached documents #534

Description

@jdm

https://wpt.fyi/results/intersection-observer/target-in-detached-document.html?label=experimental&label=master&aligned

The test creates a detached document and observes an element inside of that document with the implicit root, then expects there is no initial notification. Chrome passes this test, while Firefox and Safari do not. The spec does not seem to have any special handling for this case:

If the intersection root is not the implicit root, and target is not in the same document as the intersection root, skip to step 11.

There's no step that handles the case when the implicit root is present, so it looks like we should generate an initial notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions