Skip to content

Commit c7c54c9

Browse files
mfreed7ddbeck
andauthored
Add feature for interest invokers (#3275)
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
1 parent cf7ecb6 commit c7c54c9

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

features/interest-invokers.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Interest invokers
2+
description: Interest invokers, registered by the `interestfor` HTML attribute, trigger events and actions on a target element when a user shows interest in the element, through behaviors such as hover, focus, or long-press. Pseudo-elements apply styles to sources and targets of interest.
3+
spec: https://github.com/whatwg/html/pull/11006
4+
group: html
5+
compat_features:
6+
- api.HTMLAnchorElement.interestForElement
7+
- api.HTMLAreaElement.interestForElement
8+
- api.HTMLButtonElement.interestForElement
9+
- api.HTMLElement.interest_event
10+
- api.HTMLElement.loseinterest_event
11+
- api.InterestEvent
12+
- api.InterestEvent.InterestEvent
13+
- api.InterestEvent.source
14+
- api.SVGAElement.interestForElement
15+
- html.elements.a.interestfor
16+
- html.elements.area.interestfor
17+
- html.elements.button.interestfor
18+
- svg.elements.a.interestfor
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated from: interest-invokers.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "142"
8+
chrome_android: "142"
9+
edge: "142"
10+
compat_features:
11+
- api.HTMLAnchorElement.interestForElement
12+
- api.HTMLAreaElement.interestForElement
13+
- api.HTMLButtonElement.interestForElement
14+
- api.HTMLElement.interest_event
15+
- api.HTMLElement.loseinterest_event
16+
- api.InterestEvent
17+
- api.InterestEvent.InterestEvent
18+
- api.InterestEvent.source
19+
- api.SVGAElement.interestForElement
20+
- html.elements.a.interestfor
21+
- html.elements.area.interestfor
22+
- html.elements.button.interestfor
23+
- svg.elements.a.interestfor

scripts/specs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ const defaultAllowlist: allowlistItem[] = [
149149
[
150150
"https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Accessibility/AriaNotify/explainer.md",
151151
"Allowed because the ariaNotify() method is not yet in a formal spec. Remove this exception when a formal spec is available."
152+
],
153+
[
154+
"https://github.com/whatwg/html/pull/11006",
155+
"Allowed because this spec PR hasn't landed yet. Once the PR merges, change the spec url and remove this exception."
152156
]
153157
];
154158

0 commit comments

Comments
 (0)