From 0db34159e5fbb96bde31af5852821bb268ca1939 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 2 Jun 2021 23:22:34 +0200 Subject: [PATCH] Fix the allowed children for the for at-rule in declarations (#1340) --- CHANGELOG.md | 4 +++- lib/src/parse/stylesheet.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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":