diff --git a/CHANGELOG.md b/CHANGELOG.md index 878ade37f..b5e169bad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ * Fix the URL for the `@-moz-document` deprecation message. +* Fix a bug with `@for` loops nested inside property declarations. + ## 1.34.0 * Don't emit the same warning in the same location multiple times. @@ -46,7 +48,7 @@ * [`:is()`][] now behaves identically to `:matches()`. [`:is()`]: https://developer.mozilla.org/en-US/docs/Web/CSS/:is - + * Fix a bug where non-integer numbers that were very close to integer values would be incorrectly formatted in CSS. diff --git a/lib/src/parse/stylesheet.dart b/lib/src/parse/stylesheet.dart index 217ca3d2a..1280e2a43 100644 --- a/lib/src/parse/stylesheet.dart +++ b/lib/src/parse/stylesheet.dart @@ -681,7 +681,7 @@ abstract class StylesheetParser extends Parser { case "error": return _errorRule(start); case "for": - return _forRule(start, _declarationAtRule); + return _forRule(start, _declarationChild); case "if": return _ifRule(start, _declarationChild); case "include":