Bug 257988

Summary: Fix :user-invalid/:user-valid interactions with form reset & submission
Product: WebKit Reporter: Simon Welsh <simon>
Component: CSSAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: ntim, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac (Intel)   
OS: macOS 12   
See Also: https://github.com/web-platform-tests/wpt/pull/41378
Attachments:
Description Flags
Example.html none

Description Simon Welsh 2023-06-12 16:47:57 PDT
Created attachment 466672 [details]
Example.html

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
<rdar://problem/110677832>
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.