Skip to content

Commit

Permalink
Patch data for pageveal and audiosession:statechange event (w3c#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom authored Sep 29, 2023
1 parent c6f76ea commit 1268c50
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/amend-event-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ const patches = {
}
}
],
'audio-session': [
{
pattern: { type: 'statechange' },
matched: 1,
change: { interface: 'Event' }
}
],
'background-fetch': [
{
pattern: { type: /^backgroundfetch(success|fail)$/ },
Expand Down Expand Up @@ -144,6 +151,18 @@ const patches = {
delete: true
}
],
'css-view-transitions-2': [
// pending https://github.com/w3c/csswg-drafts/pull/9426 and https://github.com/w3c/csswg-drafts/issues/9425
{
add: {
interface: "PageRevealEvent",
bubbles: false,
type: "pagereveal",
targets: ["Window"] ,
src: { "href": "https://drafts.csswg.org/css-view-transitions-2/#document-reveal-document" }
}
}
],
'fullscreen': [
{
pattern: { href: null },
Expand Down

0 comments on commit 1268c50

Please sign in to comment.