Skip to content

[selectors-4] Clarify :blank application to radio buttons etc. #3339

Open
@fantasai

Description

@fantasai

Andrew Fedoniouk points out that it's not entirely clear whether/how :blank applies to radio buttons etc.
https://lists.w3.org/Archives/Public/www-style/2018Nov/0028.html
We should clarify this. Some options are:

  • :blank checks the 'value' on radio buttons and checkboxes; :not(:blank) effectively always applies
    -:not(:blank) applies when a radio button or checkbox is has a non-blank 'value' and is checked (will submit if not disabled); :blank applies otherwise
  • :blank applies to each input element in a group when no radio button or checkbox in its group is checked

Probably the most simple definition is 1; it largely falls out of the existing definition. However the last definition is perhaps more useful. It would be good to hear from authors here what they expect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions