Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@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}
- Loading branch information