Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1848809 [wpt PR 41471] - [@scope] Prepend implicitly nested rule …
…with kScopeActivation, a=testonly Automatic update from web-platform-tests [@scope] Prepend implicitly nested rule with kScopeActivation This CL fixes an issue when @scope is a nested group rule. Consider the following example: .a { @scope (.b) { color: green; } } We incorrectly inserted an implicit &-rule, making it equivalent to: .a { @scope (.b) { & { color: green; } } } When we should have inserted an implicit :scope-rule: .a { @scope (.b) { :scope { color: green; } } } Since the implicit &-rule lacked a kScopeActivation, the rule would never match. Fixed: 1456435 Change-Id: I885dbb2e2588e3f2421b5bb3cf4f31376443f2ff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4780629 Commit-Queue: Anders Hartvoll Ruud <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1184675} -- wpt-commits: 307933840daac547b86c7d6ed2eb7b06c658c82e wpt-pr: 41471
- Loading branch information