[css-nesting] Pass CSSNestingType to EmitNestedDeclarationsRuleIfNeeded
I initially thought the CSSNestingType only was necessary for
the implicitly inserted rule at the start of of nested group rules [1],
but obviously it's also needed for trailing/non-leading implicit rules.
This fixes a bug where trailing declarations would behave like '&'
instead of :where(:scope) inside @scope.
[1] CSSParserImpl::ConsumeRuleListOrNestedDeclarationList
Bug: 343463516
Change-Id: Ib2145957041d2b39012c3787b1122d52177553ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5822700
Commit-Queue: Anders Hartvoll Ruud andruud@chromium.org
Reviewed-by: Steinar H Gunderson sesse@chromium.org
Cr-Commit-Position: refs/heads/main@{#1348567}