Bug 1809754 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

`Component::NthOf` should be added to [`collect_ancestor_hashes()`](https://searchfox.org/mozilla-central/source/servo/components/selectors/parser.rs#526), [`maybe_allowed_after_pseudo_element()`](https://searchfox.org/mozilla-central/source/servo/components/selectors/parser.rs#1333), [`matches_for_stateless_pseudo_element()`](https://searchfox.org/mozilla-central/source/servo/components/selectors/parser.rs#1333), and [`specific_bucket_for()`](https://searchfox.org/mozilla-central/source/servo/components/style/selector_map.rs#749) like `Component::Is` and `Component::Where` are, which perhaps gets us closer to working `:nth-{,last-}child` invalidation but not quite there.
`Component::NthOf` should be added to [`collect_ancestor_hashes()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/selectors/parser.rs#526), [`maybe_allowed_after_pseudo_element()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/selectors/parser.rs#1305-1306), [`matches_for_stateless_pseudo_element()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/selectors/parser.rs#1333), and [`specific_bucket_for()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/style/selector_map.rs#749) like `Component::Is` and `Component::Where` are, which perhaps gets us closer to working `:nth-{,last-}child` invalidation but not quite there.
~~`Component::NthOf` should be added to [`collect_ancestor_hashes()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/selectors/parser.rs#526), [`maybe_allowed_after_pseudo_element()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/selectors/parser.rs#1305-1306), [`matches_for_stateless_pseudo_element()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/selectors/parser.rs#1333), and [`specific_bucket_for()`](https://searchfox.org/mozilla-central/rev/d39a17381a14606032f7b8e82789bf281beb1241/servo/components/style/selector_map.rs#749) like `Component::Is` and `Component::Where` are, which perhaps gets us closer to working `:nth-{,last-}child` invalidation but not quite there.~~

Back to Bug 1809754 Comment 1