Skip to content

Commit

Permalink
Allow numbers with leading . in plain-CSS min/max (#1432)
Browse files Browse the repository at this point in the history
Closes #1394
  • Loading branch information
nex3 committed Aug 11, 2021
1 parent d29acb0 commit e0e132e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* Fix a bug where quotes would be omitted for an attribute selector whose value
was a single backslash.

* Properly consider numbers that begin with `.` as "plain CSS" for the purposes
of parsing plain-CSS `min()` and `max()` functions.

* Allow `if` to be used as an unquoted string.

* Properly parse backslash escapes within `url()` expressions.
Expand Down
1 change: 1 addition & 0 deletions lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2780,6 +2780,7 @@ abstract class StylesheetParser extends Parser {
case $7:
case $8:
case $9:
case $dot:
try {
buffer.write(rawText(_number));
} on FormatException catch (_) {
Expand Down

0 comments on commit e0e132e

Please sign in to comment.