Apparently :nth-of-type(n of S) parses and also has associated matching logic. Ditto for :nth-last-of-type(). https://github.com/web-platform-tests/wpt/blob/add22a2f6c1f9efcc1eccc66b3e9ea9e8045a4b5/css/selectors/nth-of-007.html The spec says it should not be supported: https://w3c.github.io/csswg-drafts/selectors/#nth-of-type-pseudo
<rdar://problem/103805150>
This WPT now covers it: css/selectors/nth-of-invalid.html
Pull request: https://github.com/WebKit/WebKit/pull/8140
Committed 258389@main (008a2e643a90): <https://commits.webkit.org/258389@main> Reviewed commits have been landed. Closing PR #8140 and removing active labels.