Skip to content

Releases: jsdom/cssstyle

v4.0.1

28 Dec 13:44
Compare
Choose a tag to compare
  • Re-added the performance fix that was supposed to appear in v4.0.0, but was accidentally un-done in another commit in that release. (#170)

v4.0.0

28 Dec 13:39
Compare
Choose a tag to compare
  • Require Node.js ≥ 18
  • Handle margin and padding, and their sub-properties like marginTop, better, especially when set to the empty string or null. (#162, #165)
  • Fix HSL to RGB conversion. (#159)
  • Performance improvements by avoiding access to the expensive cssText property. (#164)
  • No longer call the onChange callback when the serialized property value does not change. (#147)

v3.0.0

13 Feb 04:31
Compare
Choose a tag to compare
  • Require Node.js ≥14
  • Use rrweb-cssom, a maintained fork of cssom (closes #153)
  • Update list of supported properties

v2.3.0

29 Apr 14:42
Compare
Choose a tag to compare
  • Add support for un-computed calc() values

v2.2.0

23 Jan 15:55
Compare
Choose a tag to compare
  • Add basic support for CSS custom properties

v2.1.0

20 Jan 20:01
Compare
Choose a tag to compare
  • Reduce package size.
    • was 151.1 kB / 1.5 MB ... now 30.0 kB (packed) / 174.4 kB (unpacked)
  • Add support for ch unit.
  • Fix color with decimal alpha values.
  • Convert hsl / hsla to rgb / rgba to match current browser behavior.

v2.0.0

01 Jul 15:18
Compare
Choose a tag to compare
  • Add support to hex alpha transparency (#rgba)
  • Fix font size declaration not checking for invalid value
  • Upgrade all dependencies
  • Migrate nodeunit -> jest
  • Add codedov integration

v1.4.0

06 May 23:15
Compare
Choose a tag to compare
  • Add missing valid color refs 'transparent' and 'currentcolor'

v1.2.1

16 Feb 17:08
Compare
Choose a tag to compare
  • Test node versions 6, 8, 10, and 11 in CI
  • Remove comma dangle which breaks legacy (Node 6) apps

v1.2.0

16 Feb 03:27
Compare
Choose a tag to compare
  • Added new script to download CSS properties from W3C standard
  • All modern (non-WD and non-FPWD) CSS properties are handled
  • Add flex related styles
  • Support for hsl and modern colors is added
  • A function redeclaration bug is fixed
  • All properties not handled by the library now fallback to a simple read/write behavior (to be improved in the future)
  • As a follow-up, properties that already had a simple read/write behavior are now handled by the fallback code
  • Add travis CI integration with GitHub
  • Add lint CI