Skip to content

Commit

Permalink
Add Scroll Snap events
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills committed Sep 23, 2024
1 parent 25ceaab commit 59a2530
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 0 deletions.
70 changes: 70 additions & 0 deletions api/Element.json
Original file line number Diff line number Diff line change
Expand Up @@ -9252,6 +9252,76 @@
}
}
},
"scrollsnapchange_event": {
"__compat": {
"description": "<code>scrollsnapchange</code> event",
"spec_url": "https://drafts.csswg.org/css-scroll-snap-2/#scrollsnapchange",
"support": {
"chrome": {
"version_added": "129"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"scrollsnapchanging_event": {
"__compat": {
"description": "<code>scrollsnapchanging</code> event",
"spec_url": "https://drafts.csswg.org/css-scroll-snap-2/#scrollsnapchanging",
"support": {
"chrome": {
"version_added": "129"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"scrollTo": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/scrollTo",
Expand Down
141 changes: 141 additions & 0 deletions api/SnapEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
{
"api": {
"SnapEvent": {
"__compat": {
"spec_url": "https://drafts.csswg.org/css-scroll-snap-2/#snapevent-interface",
"support": {
"chrome": {
"version_added": "129"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
},
"SnapEvent": {
"__compat": {
"description": "<code>SnapEvent()</code> constructor",
"spec_url": "https://drafts.csswg.org/css-scroll-snap-2/#dom-snapevent-snapevent",
"support": {
"chrome": {
"version_added": "129"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"snapTargetBlock": {
"__compat": {
"spec_url": "https://drafts.csswg.org/css-scroll-snap-2/#dom-snapevent-snaptargetblock",
"support": {
"chrome": {
"version_added": "129"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"snapTargetInline": {
"__compat": {
"spec_url": "https://drafts.csswg.org/css-scroll-snap-2/#dom-snapevent-snaptargetinline",
"support": {
"chrome": {
"version_added": "129"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}

0 comments on commit 59a2530

Please sign in to comment.