Skip to content

Conversation

ramiy
Copy link
Contributor

@ramiy ramiy commented Sep 11, 2025

HTML form control that implement native switcher functionality in a checkbox, using the switch attribute.

<input type=checkbox switch>
<input type=checkbox switch checked>

Part of Safari 17.4: https://webkit.org/blog/15054/an-html-switch-control/

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Sep 11, 2025
@captainbrosset
Copy link
Contributor

Thank you for creating this, and sorry about the delay.

We will need a link to a specification or proposal here. Has Apple shared a proposal document somewhere about this?

Also, feature YAML files also need to be accompanied by a .yml.dist file, which you can generate by doing this locally:
npm install
npm run dist features/switch-control.yml

Once done, you can commit the new file and push again to this branch.

@captainbrosset
Copy link
Contributor

whatwg/html#9546 seems to be the closest thing there is to a spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants