csslib

A library for parsing CSS.

BSD-3-CLAUSE License

Stars
95
Committers
36

Bot releases are visible (Hide)

csslib - 0.16.2 Latest Release

Published by leonsenft about 4 years ago

  • Added support for escape codes in identifiers.
csslib - 0.16.1

Published by leonsenft over 5 years ago

  • Fixed a crash caused by parsing certain calc() expressions and variables names that contain numbers.
csslib - 0.16.0

Published by leonsenft over 5 years ago

  • Removed support for the shadow-piercing comibnators /deep/ and >>>. These
    were dropped from the Shadow DOM specification.
csslib - 0.14.6

Published by leonsenft about 6 years ago

  • 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}
    
csslib - 0.14.4

Published by leonsenft over 6 years ago

  • Reduced whitespace in compact output for the @page at-rule and margin boxes.
  • Updated SDK version to 2.0.0-dev.17.0.
  • Stop using deprecated constants.
csslib - 0.14.0

Published by leonsenft over 7 years ago

New features

  • Supports nested at-rules.
  • Supports nested HTML comments in CSS comments and vice-versa.

Breaking changes

  • The 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.
csslib - 0.13.6

Published by leonsenft over 7 years ago

  • Adds support for @viewport.
  • Adds support for -webkit-calc() and -moz-calc().
  • Adds support for querying media features without specifying an expression. For
    example: @media (transform-3d) { ... }.
  • Prevents exception being thrown for invalid dimension terms, and instead
    issues an error.
csslib - 0.13.5

Published by leonsenft over 7 years ago

  • Adds support for @-moz-document.
  • Adds support for @supports.
csslib - 0.13.4

Published by leonsenft over 7 years ago

  • Parses CSS 2.1 pseudo-elements as pseudo-elements instead of pseudo-classes.
  • Supports signed decimal numbers with no integer part.
  • Fixes parsing hexadecimal numbers when followed by an identifier.
  • Fixes parsing strings which contain unicode-range character sequences.
csslib - 0.13.3+1

Published by leonsenft over 7 years ago

  • Fixes analyzer error.
csslib - 0.13.3

Published by leonsenft over 7 years ago

  • Adds support for shadow host selectors :host() and :host-context().
  • Adds support for shadow-piercing descendant combinator >>> and its alias
    /deep/ for backwards compatibility.
  • Adds support for non-functional IE filter properties (i.e. filter: FlipH).
  • Fixes emitted CSS for @page directive when body includes declarations and
    page-margin boxes.
  • Exports Message from parser.dart so it's no longer necessary to import
    src/messages.dart to use the parser API.
Package Rankings
Top 2.64% on Pub.dev
Badges
Extracted from project README
Dart CI pub package package publisher