BASELINE NowYouCanUse.com
Limited Availability Web components

Reference target

The referenceTarget property of a ShadowRoot object forwards attributes such as for and aria-labelledby to 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.
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Aug 28, 2026.
Desktop Browser Engine Support
Google Chrome
152
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
152
Supported
Mobile Browser Engine Support
Chrome Android
152
Firefox Android
—
Safari iOS
—
Specifications and References
id: referencetarget