--> even when more dashes precede it, and don't end comments at a NUL character.Font.scale keeps the line height (scaling pixel heights and keeping relative ratios) and no longer throws when the font size is unspecified.Font.cssExpression output for partial fonts and line heights.Font.hashCode for partial/empty font styles.Color.css now reads the hsl()/hsla() hue as degrees (optional deg) instead of a 0..1 fraction, and accepts percentages for saturation, lightness and alpha. Functional colors with the wrong number of components or invalid or non-finite values now throw a FormatException.Rgba.fromArgbValue, Rgba.argbValue and Hsla.color, and preserve alpha for grayscale colors in Hsla.fromRgba.Color constructor and normalize CSS short and eight-digit hex colors, with validation of malformed input and unknown color names. Eight-digit hex colors are now read as #rrggbbaa (CSS order), e.g. Color.css('#ff000080') is 50% red; previously the first byte was treated as alpha. Color.css also accepts named colors and transparent, throws a FormatException instead of an UnsupportedError for unknown color functions, and Rgba.fromString/Hsla.fromString now parse their argument only once.TokenKind.decimalToHex hanging on negative input.rebeccapurple color keyword.rem, vw, dpi, etc.) at the start of selector() and parseSelectorGroup() input and of style rules.@namespace serialization: quote bare URIs in pretty output and stop doubling already-quoted URIs.@left-bottom page-margin directive, and stop parsing @right-bottom as @left-bottom.aliceblue color keyword and the Color.aliceBlue, Color.antiqueWhite and Color.peru constants.RangeError, FormatException, StateError, ConcurrentModificationError, TypeError, StackOverflowError, and AssertionError) and infinite loops across the tokenizer, parser, analyzer, polyfill pass, and printers when processing malformed or deeply nested CSS, SCSS, and Less inputs.dart-lang/tools monorepo.ExpressionsProcessor.processFont to handle null expressions.1.0.0 (note however that there are no API changes from 0.17.x).package:dart_flutter_team_lints linting rules.Expression nodes.lh and rlh units.CssPrinter output.min(), max() and clamp() functions that contain mathematical expressions.Color.css constructor when there are double values in the rgba string.Font.merge and BoxEdge.merge are now static methods instead of factory constructors.identList argument to TokenKind.matchList./deep/ and >>>. These were dropped from the Shadow DOM specification.css executable from bin directory.css.dart library.Message.level is now of type MessageLevel defined in this package.package:args and package:logging.>=2.1.0.Removed whitespace between comma-delimited expressions in compact output.
Before:
div{color:rgba(0, 0, 0, 0.5);}
After:
div{color:rgba(0,0,0,0.5);}
Removed last semicolon from declaration groups in compact output.
Before:
div{color:red;background:blue;}
After:
div{color:red;background:blue}
:host() without an argument and added an error message explaining that a selector argument is expected.<3.0.0, and adjust other dependencies.@page at-rule and margin boxes.package:csslib/css.dart. Use parser.dart and visitor.dart instead.List<RuleSet> rulesets field on MediaDirective, HostDirective, and StyletDirective has been replaced by List<TreeNode> rules to allow nested at-rules in addition to rulesets.@viewport.-webkit-calc() and -moz-calc().@media (transform-3d) { ... }.@-moz-document.@supports.:host() and :host-context().>>> and its alias /deep/ for backwards compatibility.filter: FlipH).@page directive when body includes declarations and page-margin boxes.Message from parser.dart so it's no longer necessary to import src/messages.dart to use the parser API.logging package.Top-level methods in parser.dart now take PreprocessorOptions instead of List<String>.
PreprocessorOptions.inputFile is now final.
source_maps' Span class to source_span's SourceSpan class.