Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the allowed children for the for at-rule in declarations #1340

Merged
merged 2 commits into from Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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