Skip to content

Add filter attribute to input element#58062

Merged
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-f584ce2fe3
Feb 26, 2026
Merged

Add filter attribute to input element#58062
chromium-wpt-export-bot merged 1 commit intomasterfrom
chromium-export-f584ce2fe3

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

The filter attribute is an idref for an input element to point to a
listbox select element. When set up this way, pressing arrow keys or the
enter key on the input element moves the :active-option pseudo-class
around the options in the select element and can toggle selectedness of
the options.

A subsequent patch will implement text filtering, which will hide the
options which don't match the text typed into the input element.

https://open-ui.org/components/combobox.explainer

Bug: 453705243
Change-Id: I95612962c8fc80aa477a56ba17b9cef0e4c464f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7416248
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1590542}

The filter attribute is an idref for an input element to point to a
listbox select element. When set up this way, pressing arrow keys or the
enter key on the input element moves the :active-option pseudo-class
around the options in the select element and can toggle selectedness of
the options.

A subsequent patch will implement text filtering, which will hide the
options which don't match the text typed into the input element.

https://open-ui.org/components/combobox.explainer

Bug: 453705243
Change-Id: I95612962c8fc80aa477a56ba17b9cef0e4c464f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7416248
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1590542}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 6a91c61 into master Feb 26, 2026
28 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-f584ce2fe3 branch February 26, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants