Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions features/referencetarget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Reference target
description: The `referenceTarget` property of a `ShadowRoot` object forwards attributes such as `for` and `aria-labelledby` to elements inside a shadow DOM. This allows, for example, to link a `<label>` to its `<input>` even if the `<input>` is in the shadow DOM of a web component.
spec: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it's customary to link in-progress spec PRs for features in development, but if those are allowed here then these are the best spec links for the feature for now:
whatwg/html#10995
whatwg/dom#1353

group:
- web-components
# No BCD keys yet as the feature hasn't shipped anywhere.
# It's being implemented in Chromium, and has gone through an origin trial in 133-135:
# https://chromestatus.com/feature/5188237101891584
6 changes: 6 additions & 0 deletions features/referencetarget.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Generated from: referencetarget.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
4 changes: 4 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ const defaultAllowlist: allowlistItem[] = [
[
"https://www.w3.org/TR/2022/WD-selectors-4-20220507/#the-target-within-pseudo",
"Allowed because this is where the feature last appeared in the spec before removal."
],
[
"https://github.com/WICG/webcomponents/blob/gh-pages/proposals/reference-target-explainer.md",
"Allowed because the referencetarget feature isn't in a spec yet."
]
];

Expand Down