Repository navigation
Open
Labels
focus-area-proposalFocus Area Proposal
Description
Description
After recieving 82 👍 12 ❤️ and 9 🚀 emojis from last year's interop proposal (#1011), I'm once again asking for Reference Target to be considered for Interop 2027. It solves (and doesn't solve) some long standing issues with cross-root associations as outlined in the Edge Demo for Reference Target.
- Reference Target has an Intent to Ship in Chromium 152
- All browsers have an implementation with passing tests behind a flag (WPT.fyi)
- There's a community attempt at polyfilling the behavior: https://westbrook.github.io/reference-target-polyfill/
While I personally wish that "Attribute forwarding" as called out in the Edge demo could be reconsidered, I think anything we could do to solve this gap would be a huge leap forward in component authoring.
Specification
WHATWG
web-feature
referencetarget
Test Links
- https://github.com/web-platform-tests/wpt/tree/master/shadow-dom/reference-target/tentative
- https://wpt.fyi/results/shadow-dom/reference-target/tentative?label=experimental&label=master&aligned
Additional Signals
- Edge: Intent to Experiment https://groups.google.com/a/chromium.org/g/blink-dev/c/C3pELgMqzCY/m/DzCzBHPcAQAJ
- Edge: Intent to Ship https://groups.google.com/a/chromium.org/g/blink-dev/c/eBx3sXIfJnw/m/TZgxd6uQAQAJ
- Gecko: No signal (Reference Target for Cross-Root ARIA mozilla/standards-positions#1035)
- WebKit: No signal (Reference Target for Cross-Root ARIA WebKit/standards-positions#356)
Reacted by Westbrook Johnson, Alex Anderson, Alex Guyot, jack, Nathan Knowler, Patrick O'Brien, Owen Buckley, Anthony Frehner, Jeroen Zwartepoorte, dsenneff and 55 more
Reacted by Westbrook Johnson, jack, Pascal Vos, shonya3, suethepooh, Jérémie, Jérémie Le Scoëzec, Jayden Pearse, Michaël Vanderheyden, JC Franco and 2 more
Reacted by Westbrook Johnson, jack, Pascal Vos, shonya3, Joakim, suethepooh, Jérémie, Jérémie Le Scoëzec, JC Franco and TK Design System - Admin User
Metadata
Metadata
Assignees
Labels
focus-area-proposalFocus Area Proposal
Type
Projects
- StatusShow more project fieldsTodo
Activity
Westbrook commentedon Sep 3, 2026
Having spent time struggling with the lack of an API in this area, writing proposals/specs in this area, gathering agreement in this area, working to get this API covered in previous interop years, attempting to polyfill this area, I'd say it's about time that browsers put their money where there mouth is in so far as supporting accessibility/performance and its delivery to the priority of constituencies. All people should be empowered to interact with complex content on the internet, not matter their requirements when interacting with that content and developers should be empowered with API to ensure that if those requirements revolve accessibility that they are able to deliver content that makes this true. Please add this to Interop 2027. 🙇🏼♂️
Note on the polyfill, these relationships are ridiculously hard to guarnatee outside of native support, and polyfilling them even more intrusive on other work that might be the main goal of the interfaces they might be leveraged in. Learn more about the scope of current polyfilling efforts, or by checking out how polyfilling interacts with various popular web frameworks/renderers.
github-actions commentedon Sep 3, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
Feature Reference target
referenceTargetproperty of aShadowRootobject forwards attributes such asforandaria-labelledbyto elements inside a shadow DOM. You can use this to, for example, link a<label>to its<input>even if the<input>is in the shadow DOM of a web component.<template>HTML content template element