Closed Bug 1484491 Opened 2 years ago Closed 1 year ago
[wpt-sync] Sync PR 12561 - Add two selector tests for :nth-child selector with whitespace in the argument
Sync web-platform-tests PR 12561 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/12561 Details from upstream follow. Jason Killian <email@example.com> wrote: > Add two selector tests for :nth-child selector with whitespace in the argument > > Over in [nwsapi](https://github.com/dperini/nwsapi) (which powers [jsdom](https://github.com/jsdom/jsdom)), we found [an issue](https://github.com/dperini/nwsapi/issues/20) where having space in an `nth-child` selector (e.g. `:nth-child(2n - 1)`) was causing the selector to fail. > > This PR adds two lines of tests to ensure that this scenario is covered. I verified that selectors with spaces like these two work in FF and Chrome and also that [the spec](https://drafts.csswg.org/selectors-3/#nth-child-pseudo) allows whitespace here.
Component: web-platform-tests → DOM
Product: Testing → Core
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=f4b3020cb163f01531a69143e307c11fdb9bd5f8
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=335f8b37de4bbb1c4eb8e30424ea64aa00a61fba
Ran 4 tests and 5208 subtests OK : 4 PASS : 5208
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/32fec4d9b64b [wpt PR 12561] - Add two selector tests for :nth-child selector with whitespace in the argument, a=testonly
You need to log in before you can comment on or make changes to this bug.