[Webkit-unassigned] [Bug 266455] New: :user-invalid and :user-valid do not trigger for Form Associated Custom Elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 14 20:47:26 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=266455

            Bug ID: 266455
           Summary: :user-invalid and :user-valid do not trigger for Form
                    Associated Custom Elements
           Product: WebKit
           Version: Safari 17
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nathan at knowler.dev

Created attachment 469055

  --> https://bugs.webkit.org/attachment.cgi?id=469055&action=review

Demonstration of :user-invalid and :user-valid with a form associated custom element (works in Firefox)

`:user-invalid` and `:user-valid` do not work for form associated custom elements in Safari (or Chrome). It does work correctly in Firefox. I am able to trigger those pseudo-classes for a form associated custom element in Firefox when I make the form value of the element dirty with `ElementInternals.setFormValue()`, then either by setting or clearing a constraint violation with `ElementInternals.setValidity()`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231215/f3582cd6/attachment.htm>


More information about the webkit-unassigned mailing list