Skip to content

Commit 0db3415

Browse files
authored
Fix the allowed children for the for at-rule in declarations (#1340)
1 parent fd1bfd2 commit 0db3415

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* Fix the URL for the `@-moz-document` deprecation message.
44

5+
* Fix a bug with `@for` loops nested inside property declarations.
6+
57
## 1.34.0
68

79
* Don't emit the same warning in the same location multiple times.
@@ -46,7 +48,7 @@
4648
* [`:is()`][] now behaves identically to `:matches()`.
4749

4850
[`:is()`]: https://developer.mozilla.org/en-US/docs/Web/CSS/:is
49-
51+
5052
* Fix a bug where non-integer numbers that were very close to integer
5153
values would be incorrectly formatted in CSS.
5254

lib/src/parse/stylesheet.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ abstract class StylesheetParser extends Parser {
681681
case "error":
682682
return _errorRule(start);
683683
case "for":
684-
return _forRule(start, _declarationAtRule);
684+
return _forRule(start, _declarationChild);
685685
case "if":
686686
return _ifRule(start, _declarationChild);
687687
case "include":

0 commit comments

Comments
 (0)