github web-platform-tests/wpt merge_pr_47858

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
12 months ago

[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}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.