Skip to content

Commit

Permalink
Fix the allowed children for the for at-rule in declarations (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 2, 2021
1 parent fd1bfd2 commit 0db3415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion lib/src/parse/stylesheet.dart
Expand Up @@ -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":
Expand Down

0 comments on commit 0db3415

Please sign in to comment.