This is better handled by RuleSetBuilder
Created attachment 440164 [details] Patch
Committed r283552 (242517@main): <https://commits.webkit.org/242517@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440164 [details].
<rdar://problem/83888314>