Skip to content

Match required and optional form-control states - #447

Merged
wieslawsoltes merged 1 commit into
mainfrom
feature/css-form-required-257
Sep 18, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
feature/css-form-required-257

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

:required and :optional were parsed and had required dependency metadata, but the native matcher rejected both pseudos. This change matches the states for applicable input, select, and textarea controls and tracks type mutations that move inputs into or out of the applicable set.

The applicability check treats missing and unknown input types as text and excludes hidden, range, color, and button-like types. Buttons and unrelated elements match neither pseudo-class.

Validation debt: under the current implementation-only priority, browser/WPT/native correctness, build, performance, allocation, memory, lifecycle, scene/pixel, product, hosted checks, and CI monitoring were intentionally skipped. git diff --check passed. This debt remains under #257/#235.

Closes #446
Parent: #257

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.

Match required and optional form-control pseudo-classes

1 participant