style: Implement parsing and serialization for nth-child(An+B of selector list) and :nth-last-child(An+B of selector list)

:nth-{,last-}child parsing is disabled by default for now by pref
layout.css.nth-child-of.enabled.

Differential Revision: https://phabricator.services.mozilla.com/D165895
This commit is contained in:
Zach Hoffman 2023-01-07 14:32:42 +00:00 committed by Martin Robinson
parent b7d64ee6a4
commit 1c8408e97e
6 changed files with 123 additions and 11 deletions

View file

@ -698,6 +698,7 @@ where
Component::Is(ref list) | Component::Where(ref list) | Component::Has(ref list) => {
list.size_of(ops)
},
Component::NthOf(ref nth_of_data) => nth_of_data.size_of(ops),
Component::PseudoElement(ref pseudo) => (*pseudo).size_of(ops),
Component::Combinator(..) |
Component::ExplicitAnyNamespace |