Skip to content

CSS Color Spacing + Optional alpha parameter for rgb/hsl

Latest
Compare
Choose a tag to compare
@notoriousb1t notoriousb1t released this 25 Aug 23:34
· 17 commits to master since this release
  • This releases adds spaces after , for color function to match the CSSOM output for computed properties. This is an attempt to improve testability of the css functions for consumers of the CSX library and to align more closely with the CSSOM.

  • Added optional alpha parameter to rgb() and hsl(). This is in an effort to more closely align with the CSSOM, but also makes switching between alpha channel colors and non-alpha channel colors much nicer.