Skip to content

Commit b0ef7b7

Browse files
Add the referencetarget feature (#3376)
Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 0f7601c commit b0ef7b7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

features/referencetarget.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Reference target
2+
description: 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.
3+
spec:
4+
- https://github.com/whatwg/dom/pull/1353
5+
- https://github.com/whatwg/html/pull/10995
6+
group:
7+
- web-components
8+
# Expected keys via Chrome origin trial in 133-135 https://chromestatus.com/feature/5188237101891584
9+
# api.Element.attachShadow.options_referenceTarget_parameter
10+
# api.ShadowRoot.referenceTarget

features/referencetarget.yml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated from: referencetarget.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}

scripts/specs.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ const defaultAllowlist: allowlistItem[] = [
134134
"https://www.w3.org/TR/2022/WD-selectors-4-20220507/#the-target-within-pseudo",
135135
"Allowed because this is where the feature last appeared in the spec before removal."
136136
],
137+
[
138+
"https://github.com/whatwg/dom/pull/1353",
139+
"Allowed because this is where the referencetarget feature is being added to the DOM spec"
140+
],
141+
[
142+
"https://github.com/whatwg/html/pull/10995",
143+
"Allowed because this is where the referencetarget feature is being added to the HTML spec"
144+
],
137145
[
138146
"https://patcg-individual-drafts.github.io/topics/",
139147
"Allowed because the Topics API isn't on a standards track yet. Remove this exception when it is."

0 commit comments

Comments
 (0)