diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a26699e57..c30430366a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -## [2.1.1] - July 27, 2021: +## [2.1.1] - July 28, 2021: +* Stable release with all 2.1.1-preview.X changes + +## [2.1.1-preview.0] - July 27, 2021: * Improves hr tag support * Fixes a leading whitespace issue * Fixes some crashes with CSS parsing diff --git a/lib/src/css_parser.dart b/lib/src/css_parser.dart index 261a09ba27..94ce32012f 100644 --- a/lib/src/css_parser.dart +++ b/lib/src/css_parser.dart @@ -194,6 +194,9 @@ Style declarationsToStyle(Map> declarations) { case 'font-weight': style.fontWeight = ExpressionMapping.expressionToFontWeight(value.first); break; + case 'height': + style.height = ExpressionMapping.expressionToPaddingLength(value.first) ?? style.height; + break; case 'list-style-type': if (value.first is css.LiteralTerm) { style.listStyleType = ExpressionMapping.expressionToListStyleType(value.first as css.LiteralTerm) ?? style.listStyleType; @@ -298,6 +301,9 @@ Style declarationsToStyle(Map> declarations) { case 'text-shadow': style.textShadow = ExpressionMapping.expressionToTextShadow(value); break; + case 'width': + style.width = ExpressionMapping.expressionToPaddingLength(value.first) ?? style.width; + break; } } });