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

[selectors-4] Clarify :blank #8220

Closed
fantasai opened this issue Dec 13, 2022 · 1 comment
Closed

[selectors-4] Clarify :blank #8220

fantasai opened this issue Dec 13, 2022 · 1 comment

Comments

@fantasai
Copy link
Collaborator

fantasai commented Dec 13, 2022

See whatwg/html#8451 (comment)

Rule of thumb: “if it always submits, and would do so with an empty string, it's :blank; if it sometimes submits, and is set to not submit, it's :blank”. Action buttons (rather than toggle buttons that represent a state) such as <input type=reset>, <button>, <input type=submit>, etc., never match :blank.

tabatkins added a commit that referenced this issue Jan 7, 2023
@tabatkins
Copy link
Member

Changed the :blank example into a note that reproduces the guidance from the HTML issue (which we expect HTML to adopt).

jakearchibald pushed a commit to jakearchibald/csswg-drafts that referenced this issue Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants