Repository navigation
Description
Description
I want to propose an Interop 2027 investigation of Intersection Observer visibility tracking, covering trackVisibility, delay, and IntersectionObserverEntry.isVisible.
The goal is to establish a useful, agreed set of visibility expectations and reliable tests that could support a future scored focus area. The work would build on the existing Intersection Observer specification and visibility-tracking WPT suite. The related web-feature is intersection-observer-v2.
The initial scope is option handling, observation updates, simple opaque overlap and its removal, opacity and filters, and visibility transitions where the target's geometry remains unchanged. Transform and frame cases should be reviewed separately so that their additional dependencies remain clear.
Rationale
Geometric intersection does not establish that content is visible to a user. A target can remain inside the viewport while another element covers it or rendering effects compromise its visibility. Applications measuring content exposure need to understand this distinction.
There is a concrete library workaround: react-intersection-observer documents that, when visibility tracking is requested in an unsupported browser, its fallback always reports isVisible as true. This keeps the interface usable but cannot provide actual occlusion information. MDN compatibility data records Chromium support for trackVisibility and no Firefox or Safari support.
The previous Interop 2026 proposal #1080 was not selected. This submission changes the immediate objective from implementation of the feature to resolving specific obstacles to interoperable implementation and testing.
Mozilla's position is positive, but WebKit's position issue remains open with an interoperability-concerns label. The discussion identifies a concern about implementation-defined occlusion behavior; the response from the specification editor explains the intended basis in paint order, rectangles, and ink overflow. That response is useful evidence, but it does not establish that the concern has been resolved.
There is also concrete test maintenance to do. In the inspected delay-test.html, the final step checks that three entries exist, then checks entries[0].isVisible again. It therefore does not verify the visibility value of the third, recovery entry. This is an observable coverage weakness in the test source.
An investigation is appropriate because it can turn these concerns into specific test and specification work without claiming that an agreed scoring subset already exists.
Investigation Roadmap proposal
-
Map assertions to specification requirements. Document which outcomes are required, where conservative visibility decisions are permitted, and where additional agreement is needed. Separate API and timing behavior from occlusion and rendering behavior. Record disputed expectations explicitly.
-
Audit a small existing test set. Start with simple-occlusion.html, simple-effects.html, and delay-test.html. Review z-index-changes.html separately because it observes content inside an iframe. These are audit inputs, not a proposed final score.
-
Strengthen transition and timing coverage. Correct the recovery-entry assertion after reviewing the intended sequence. Check coverage for visibility changes without geometric changes, observation initialization, and option handling. Use suitable rendering synchronization and avoid treating an exact callback delivery time as a requirement.
-
Resolve disputed expectations in the standards venue. Bring minimal cases and proposed clarifications to the W3C Web Applications Working Group, coordinating with CSSWG where rendering definitions are involved. Seek review from implementers, including those who raised the interoperability concern. Interop would coordinate the investigation; specification decisions remain with the relevant groups.
-
Publish a readiness assessment. Deliver an assertion-to-specification matrix, reviewed WPT changes, an exact candidate manifest with exclusions, and desktop results identifying browser versions, channels, and run identifiers. The existing results page is a starting point for that work, not evidence that this audit is complete.
Specification and existing tests
- Intersection Observer specification
- WPT visibility-tracking test suite
- [Published WPT results
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity