Steinar H Gunderson would like Anders Hartvoll Ruud to review this change.
Wrap mixin contents in @result.
This is the first step towards supporting locals in mixins.
We don't yet support @result within conditionals (though conditionals
within @result keeps being supported).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// Copyright 2025 The Chromium Authorsnit!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
// Copyright 2025 The Chromium AuthorsSteinar H Gundersonnit!
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (rule_type == StyleRule::kMixin) {
// We do not accept declarations directly in @mixin; they need to be wrapped
// in @result.Yes, we do. They should be wrapped in some bespoke nested declarations rule, see `StyleRuleFunctionDeclarations` on line 1294.
if (rule_type != StyleRule::kMixin) {| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (rule_type == StyleRule::kMixin) {
// We do not accept declarations directly in @mixin; they need to be wrapped
// in @result.Yes, we do. They should be wrapped in some bespoke nested declarations rule, see `StyleRuleFunctionDeclarations` on line 1294.
For the time being, allowing this will crash. This restriction is loosened again in the next CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (rule_type == StyleRule::kMixin) {
// We do not accept declarations directly in @mixin; they need to be wrapped
// in @result.Steinar H GundersonYes, we do. They should be wrapped in some bespoke nested declarations rule, see `StyleRuleFunctionDeclarations` on line 1294.
For the time being, allowing this will crash. This restriction is loosened again in the next CL.
Acknowledged
if (rule_type != StyleRule::kMixin) {This doesn't seem right either.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Wrap mixin contents in @result.
This is the first step towards supporting locals in mixins.
We don't yet support @result within conditionals (though conditionals
within @result keeps being supported).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |