Bug 249990
Summary: | Selector argument for :nth-of-type or :nth-last-of-type should be rejected | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
Version: | Safari Technology Preview | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Tim Nguyen (:ntim)
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/103805150>
Tim Nguyen (:ntim)
This WPT now covers it: css/selectors/nth-of-invalid.html
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/8140
EWS
Committed 258389@main (008a2e643a90): <https://commits.webkit.org/258389@main>
Reviewed commits have been landed. Closing PR #8140 and removing active labels.