css-inline

High-performance library for inlining CSS into HTML 'style' attributes

MIT License

Downloads
2.6M
Stars
213
Committers
13

Bot releases are hidden (Show)

css-inline - [Python] Release 0.11.2

Published by Stranger6667 10 months ago

Performance

  • Avoid iterating over non-Element nodes.
  • Reuse caches for nth index selectors.
css-inline - [Rust] Release 0.11.2

Published by Stranger6667 10 months ago

Performance

  • Avoid iterating over non-Element nodes.
  • Reuse caches for nth index selectors.
css-inline - [WASM] Release 0.11.1

Published by Stranger6667 10 months ago

Changed

  • Update indexmap to 2.1.
  • Update cssparser to 0.31.2.
  • Update selectors to 0.25.
  • Bump MSRV to 1.65.

Fixed

  • getrandom dependency features.
  • Replace double quotes in all property values.

Performance

  • Avoid allocation when replacing double quotes in property values.
css-inline - [Ruby] Release 0.11.1

Published by Stranger6667 11 months ago

Changed

  • Update indexmap to 2.1.
  • Update cssparser to 0.31.2.
  • Update selectors to 0.25.
  • Bump MSRV to 1.65.

Fixed

  • Replace double quotes in all property values.

Performance

  • Avoid allocation when replacing double quotes in property values.
css-inline - [Python] Release 0.11.1

Published by Stranger6667 11 months ago

Added

  • Python 3.12 support.
  • Build wheels for Python 3.10 on PyPy.

Changed

  • Update indexmap to 2.1.
  • Update cssparser to 0.31.2.
  • Update selectors to 0.25.
  • Bump MSRV to 1.65.
  • Update PyO3 to 0.20.0.
  • Update built to 0.7.1.
  • Bump manylinux version for aarch64 wheels to 2_24.

Fixed

  • Replace double quotes in all property values.

Performance

  • Avoid allocation when replacing double quotes in property values.
css-inline - [Rust] Release 0.11.1

Published by Stranger6667 11 months ago

Changed

  • Update indexmap to 2.1.
  • Update cssparser to 0.31.2.
  • Update selectors to 0.25.
  • Bump MSRV to 1.65.

Fixed

  • Replace double quotes in all property values.

Performance

  • Avoid allocation when replacing double quotes in property values.
css-inline - [Ruby] Release 0.11.0

Published by Stranger6667 about 1 year ago

Added

  • The inline_style_tags option to control whether inlining from "style" tags should be performed. #253

Performance

  • Reuse existing attributes when creating an element during parsing.

Changed

  • Bump MSRV to 1.63.
css-inline - [Python] Release 0.11.0

Published by Stranger6667 about 1 year ago

Added

  • The inline_style_tags option to control whether inlining from "style" tags should be performed. #253

Performance

  • Reuse existing attributes when creating an element during parsing.

Changed

  • Bump MSRV to 1.63.
css-inline - [Rust] Release 0.11.0

Published by Stranger6667 about 1 year ago

Added

  • The inline_style_tags option to control whether inlining from "style" tags should be performed. #253

Performance

  • Reuse existing attributes when creating an element during parsing.

Changed

  • Bump MSRV to 1.63.
css-inline - [Rust] Release 0.10.5

Published by Stranger6667 about 1 year ago

Performance

  • Pre-allocate space during serialization.
  • Optimized class attribute handling: up to 25% faster for extensive class-dependent selectors.
  • Fast-path class check for shorter class attribute values.
  • Use a Bloom filter to detect if an element has no given class.
  • Avoid allocating a vector during selectors compilation.
  • Use FxHasher in more cases.

Changed

  • Drop usage of memchr.
  • Bump MSRV to 1.62.1.
css-inline - [WASM] Release 0.10.4

Published by Stranger6667 about 1 year ago

Fixed

  • Applying new styles only to the first matching tag during styles merging. #224

Performance

  • Fix under-allocating storage for intermediate CSS styles.
  • Perform CSS inlining as late as possible to avoid intermediate allocations. #220
css-inline - [Ruby] Release 0.10.4

Published by Stranger6667 about 1 year ago

Changed

  • Update magnus to 0.6.

Fixed

  • Applying new styles only to the first matching tag during styles merging. #224

Performance

  • Fix under-allocating storage for intermediate CSS styles.
  • Perform CSS inlining as late as possible to avoid intermediate allocations. #220
css-inline - [Python] Release 0.10.4

Published by Stranger6667 about 1 year ago

Fixed

  • Applying new styles only to the first matching tag during styles merging. #224

Performance

  • Fix under-allocating storage for intermediate CSS styles.
  • Perform CSS inlining as late as possible to avoid intermediate allocations. #220
css-inline - [Rust] Release 0.10.4

Published by Stranger6667 about 1 year ago

Fixed

  • Applying new styles only to the first matching tag during styles merging. #224

Performance

  • Fix under-allocating storage for intermediate CSS styles.
  • Perform CSS inlining as late as possible to avoid intermediate allocations. #220
css-inline - [Rust] Release 0.10.3

Published by Stranger6667 over 1 year ago

Performance

  • Optimized HTML serialization for a performance boost of up to 25%.
css-inline - [WASM] Release 0.10.2

Published by Stranger6667 over 1 year ago

Changed

  • Standardized the formatting of CSS declarations: now consistently using : separator between properties and values.

Performance

  • Various performance improvements.
css-inline - [Ruby] Release 0.10.2

Published by Stranger6667 over 1 year ago

Changed

  • Standardized the formatting of CSS declarations: now consistently using : separator between properties and values.

Performance

  • Various performance improvements.
css-inline - [Python] Release 0.10.2

Published by Stranger6667 over 1 year ago

Changed

  • Standardized the formatting of CSS declarations: now consistently using : separator between properties and values.

Performance

  • Various performance improvements.
css-inline - [Rust] Release 0.10.2

Published by Stranger6667 over 1 year ago

Changed

  • Standardized the formatting of CSS declarations: now consistently using : separator between properties and values.

Performance

  • Various performance improvements.
css-inline - [Ruby] Release 0.10.1

Published by Stranger6667 over 1 year ago

Performance

  • Use a simpler way for HTML tree traversal.
  • Avoid hashing in some cases.
Package Rankings
Top 3.62% on Npmjs.org
Top 9.76% on Crates.io
Top 28.25% on Rubygems.org
Top 2.47% on Pypi.org