csslib
A library for parsing and analyzing CSS (Cascading Style Sheets).
1.0.2
7.8M downloads/mo
#72 most downloaded on pub.dev
dart-lang/tools
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.4 years
Some releases are documented
notes for 35 of 115 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
117 releases · first in 2013
0 releases in the last 12 months
see the full history below
Release timeline
117 releases · Jan 2013 to Oct 2024Releases
latest 60 of 117-
1.0.229 Oct 2024 -
1.0.007 Jun 2023 -
0.17.322 May 2023Release notes
Open source →- Add markdown badges to the readme.
- Adopted
package:dart_flutter_team_lintslinting rules. - Addressed an issue parsing font names not surrounded by quotes.
- Fixed the reported span for
Expressionnodes. - Fixed a regression parsing declaration values containing spaces.
- Add support for
lhandrlhunits. - Refactor the package example.
- Addressed an issue with the indent level of the
CssPrinteroutput. - Require Dart 2.19.
-
0.17.226 May 2022Release notes
Open source →- Fixed a crash caused by
min(),max()andclamp()functions that contain mathematical expressions. - Add commas between PercentageTerms in keyframe rules.
- Fixed a crash caused by
-
0.17.106 Oct 2021Release notes
Open source →- Fix
Color.cssconstructor when there are double values in thergbastring.
- Fix
-
0.17.011 Feb 2021Release notes
Open source →- Migrate to null safety.
Font.mergeandBoxEdge.mergeare now static methods instead of factory constructors.- Add a type on the
identListargument toTokenKind.matchList. - Remove workaround for https://github.com/dart-lang/sdk/issues/43136, which is now fixed.
-
0.17.0-nullsafety.025 Jan 2021 pre-releaseNothing published for this version
-
0.16.227 Jul 2020 -
0.16.108 Jul 2019Release notes
Open source →- Fixed a crash caused by parsing certain calc() expressions and variables names that contain numbers.
-
0.16.024 Apr 2019Release notes
Open source →- Removed support for the shadow-piercing comibnators
/deep/and>>>. These were dropped from the Shadow DOM specification.
- Removed support for the shadow-piercing comibnators
-
0.15.011 Apr 2019Release notes
Open source →- BREAKING
- Removed
cssexecutable frombindirectory. - Removed the deprecated
css.dartlibrary. Message.levelis now of typeMessageLeveldefined in this package.
- Removed
- Removed dependencies on
package:argsandpackage:logging. - Require Dart SDK
>=2.1.0.
- BREAKING
-
0.14.604 Oct 2018Release notes
Open source →-
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}
-
-
0.14.6+108 Jul 2019Nothing published for this version
-
0.14.514 Aug 2018Release notes
Open source →- Fixed a crashed caused by parsing
:host()without an argument and added an error message explaining that a selector argument is expected.
- Fixed a crashed caused by parsing
-
0.14.410 May 2018Release notes
Open source →- Reduced whitespace in compact output for the
@pageat-rule and margin boxes. - Updated SDK version to 2.0.0-dev.17.0.
- Stop using deprecated constants.
- Reduced whitespace in compact output for the
-
0.14.4+116 Jul 2018 -
0.14.310 May 2018 -
0.14.201 May 2018 -
0.14.121 Sep 2017Release notes
Open source →- Deprecated
package:csslib/css.dart. Useparser.dartandvisitor.dartinstead.
- Deprecated
-
0.14.030 May 2017Release notes
Open source →New features
- Supports nested at-rules.
- Supports nested HTML comments in CSS comments and vice-versa.
Breaking changes
- The
List<RuleSet> rulesetsfield onMediaDirective,HostDirective, andStyletDirectivehas been replaced byList<TreeNode> rulesto allow nested at-rules in addition to rulesets.
-
0.13.722 May 2017Nothing published for this version
-
0.13.7+122 May 2017Nothing published for this version
-
0.13.612 May 2017Release notes
Open source →- 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.
- Adds support for
-
0.13.512 Apr 2017 -
0.13.407 Mar 2017Release notes
Open source →- 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.
-
0.13.326 Jan 2017Release notes
Open source →- 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
@pagedirective when body includes declarations and page-margin boxes. - Exports
Messagefromparser.dartso it's no longer necessary to importsrc/messages.dartto use the parser API.
- Adds support for shadow host selectors
-
0.13.3+126 Jan 2017 -
0.13.211 May 2016 -
0.13.2+117 Oct 2016 -
0.13.2+217 Nov 2016 -
0.13.121 Apr 2016 -
0.13.021 Apr 2016Release notes
Open source →- BREAKING Fix all strong mode errors and warnings. This involved adding more precise on some public APIs, which is why it may break users.
-
0.12.216 Oct 2015Release notes
Open source →- Fix to handle calc functions however, the expressions are treated as a LiteralTerm and not fully parsed into the AST.
-
0.12.110 Jul 2015 -
0.12.003 Apr 2015Release notes
Open source →-
Top-level methods in
parser.dartnow takePreprocessorOptionsinstead ofList<String>. -
PreprocessorOptions.inputFileis now final.
-
-
0.12.0+112 May 2015 -
0.11.030 Jul 2014 -
0.11.0+230 Jul 2014 -
0.11.0+402 Feb 2015 -
0.10.023 May 2014Nothing published for this version
-
0.10.0+127 May 2014Nothing published for this version
-
0.10.0-dev21 May 2014 pre-releaseNothing published for this version
-
0.9.207 Jan 2014Nothing published for this version
-
0.9.110 Dec 2013Nothing published for this version
-
0.9.006 Nov 2013Nothing published for this version
-
0.8.1001 Nov 2013Nothing published for this version
-
0.8.10+304 Nov 2013Nothing published for this version
-
0.8.10+405 Nov 2013Nothing published for this version
-
0.8.931 Oct 2013Nothing published for this version
-
0.8.830 Oct 2013Nothing published for this version
-
0.8.728 Oct 2013Nothing published for this version
-
0.8.624 Oct 2013Nothing published for this version
-
0.8.521 Oct 2013Nothing published for this version
-
0.8.419 Oct 2013Nothing published for this version
-
0.8.317 Oct 2013Nothing published for this version
-
0.8.214 Oct 2013Nothing published for this version
-
0.8.104 Oct 2013Nothing published for this version
-
0.8.003 Oct 2013Nothing published for this version
-
0.7.627 Sep 2013Nothing published for this version
-
0.7.6+401 Oct 2013Nothing published for this version