Bug 257988 - Fix :user-invalid/:user-valid interactions with form reset & submission
Summary: Fix :user-invalid/:user-valid interactions with form reset & submission
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Intel) macOS 12
: P2 Normal
Assignee: Tim Nguyen (:ntim)
Keywords: InRadar
: 257989 (view as bug list)
Depends on:
Reported: 2023-06-12 16:47 PDT by Simon Welsh
Modified: 2023-08-08 15:15 PDT (History)
3 users (show)

See Also:

Example.html (418 bytes, text/html)
2023-06-12 16:47 PDT, Simon Welsh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Welsh 2023-06-12 16:47:57 PDT
Created attachment 466672 [details]

When submitting a form that has required inputs, :user-invalid is not triggered for these required inputs.

In the attached example, I'd expect all inputs to have a red border when submitting the form without providing any values.
Comment 1 Radar WebKit Bug Importer 2023-06-12 18:03:38 PDT
Comment 2 Tim Nguyen (:ntim) 2023-08-07 20:55:34 PDT
*** Bug 257989 has been marked as a duplicate of this bug. ***
Comment 3 Tim Nguyen (:ntim) 2023-08-07 21:49:32 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16465
Comment 4 Tim Nguyen (:ntim) 2023-08-07 21:51:15 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/41378
Comment 5 EWS 2023-08-08 15:15:18 PDT
Committed 266702@main (b148a49fc1bd): <https://commits.webkit.org/266702@main>

Reviewed commits have been landed. Closing PR #16465 and removing active labels.