Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-scroll-snap-2] Add snap event handler attributes for Document and Element #10215

Merged
merged 3 commits into from May 14, 2024

Conversation

DavMila
Copy link
Contributor

@DavMila DavMila commented Apr 16, 2024

Add snap event handler attributes for Document and Element

This adds the onsnapchanged and onsnapchanging attributes to the css-scroll-snap-2 specification for elements and Document objects.

Heavily influenced by css-animations' extensions to GlobalInterfaceHandlers.

…d Element

This adds the onsnapchanged and onsnapchanging attributes to the
css-scroll-snap-2 specification for elements and Document objects.

Heavily influenced by css-animations extensions to
GlobalInterfaceHandlers[1].

[1] https://drafts.csswg.org/css-animations/#interface-globaleventhandlers
@DavMila DavMila requested a review from flackr April 16, 2024 15:15
@DavMila DavMila requested a review from tabatkins May 3, 2024 13:07
@DavMila DavMila changed the title [css-scroll-snap-2] Add snap event handler attributes for Document an… [css-scroll-snap-2] Add snap event handler attributes for Document and Element May 3, 2024
<td><dfn>onsnapchanging</dfn></td>
<td>{{snapchanging}}</td>
</table>

Copy link
Contributor

Choose a reason for hiding this comment

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

I think these additions to the html spec would belong in an appendix as a modification of the the particular spec section, specifically https://html.spec.whatwg.org/#event-handlers-on-elements,-document-objects,-and-window-objects in this case. E.g. in the scroll-animations spec we have two animation concepts in the appendix labeled as should be moved to the relevant web-animations and css-animations specs: https://drafts.csswg.org/scroll-animations-1/#timeline-ranges

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the link. Done.

Move to appendix; point to html spec.
@DavMila DavMila requested a review from flackr May 7, 2024 20:28
css-scroll-snap-2/Overview.bs Outdated Show resolved Hide resolved
Clarify that event handlers are additional attributes.
@tabatkins tabatkins merged commit f59dc15 into w3c:main May 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants