- From: Joey Arhar via GitHub <sysbot+gh@w3.org>
- Date: Mon, 28 Aug 2023 20:29:55 +0000
- To: public-css-archive@w3.org
josepharhar has just created a new issue for https://github.com/w3c/csswg-drafts: == [selectors-4] Should :user-valid and :user-invalid apply to form and fieldset elements? == The selectors-4 spec says this here after the definition of :user-valid and :user-invalid: https://drafts.csswg.org/selectors-4/#issue-df919919 > Clarify that this (and [:invalid](https://drafts.csswg.org/selectors-4/#invalid-pseudo)/[:valid](https://drafts.csswg.org/selectors-4/#valid-pseudo)) can apply to form and fieldset elements. I made a quick demo here: https://jsfiddle.net/jarhar/Lohxsz2n/30/ It looks like :valid and :invalid apply to form elements, whereas :user-valid and :user-invalid don't apply to forms. This behavior is the same across chrome, firefox, and safari. Should we standardize this behavior which happens to already be interoperable? Or should we make changes to make :user-valid and :user-invalid apply to forms and fieldsets? @nt1m Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9257 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 28 August 2023 20:29:58 UTC