You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@tbela99/css-parser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tbela99/css-parser - npm Package Versions

23

1.1.0

Diff
t
tbela99
published 1.1.0 •

Changelog

Source

v1.1.0

  • [x] inline sourcemap
  • [x] CSS validation using mdn-data
  • [x] prefix removal now remove prefixes from all nodes. prefixed linear gradients are not supported
t
tbela99
published 1.0.0 •

Changelog

Source

v1.0.0

  • [x] current color parse error when used in color functions
  • [x] minification : CSS transform module level 2
    • [x] translate
    • [x] scale
    • [x] rotate
    • [x] skew
    • [x] perspective
    • [x] matrix
    • [x] matrix3d
  • [x] keyframes
    • [x] remove consecutive keyframes with the same name
    • [x] reduce keyframe selector 'from' to '0%'
    • [x] reduce keyframe selector '100%' to 'to'
    • [x] remove keyframe selector ignored declarations
    • [x] merge keyframe rules and declarations
  • [x] trim extra space in declaration value 'url() 15%' -> 'url()15%', '1% !important' -> '1%!important'
  • [x] allow empty value for css variable declaration '--color: ;'
  • [x] change generate nesting rule default to true
t
tbela99
published 0.9.1 •

Changelog

Source

v0.9.1

  • [x] minification passes #66
  • [x] nesting selector cannot match pseudo element #67
t
tbela99
published 0.9.0 •

Changelog

Source

v0.9.0

validation

  • [x] validate invalid pseudo classes
  • [x] rewrite selector validation
  • [x] lenient mode that preserves
    • [x] unknown at-rules
    • [x] unknown declarations
    • [x] unknown pseudo classes

media query level 5

  • [x] at-rule custom-media
  • [x] at-rule when-else custom media
  • [x] at-rule charset validation
  • [x] media query error handling
  • [x] at-rule container
  • [ ] expand at-rule custom-media
  • [ ] expand at-rule when-else

selector validation

  • [ ] pseudo class arguments validation
  • [ ] pseudo class validation

declaration validation

  • [ ] validate declaration

error validation

  • [ ] when a parent is marked as invalid node, do not parse or validate descendant nodes
t
tbela99
published 0.8.0 •

Changelog

Source

v0.8.0

  • [x] validate selectors using mdn data
  • [x] at-rules prefix removal
  • [x] at rules validation
    • [x] at-rule prelude
    • [x] at-rule body
    • [x] keyframe validation
    • [ ] :not() does not accept pseudo classes
    • [ ] do not validate declarations in @supports
  • [ ] declarations validation
  • [x] evaluate math functions: calc(), clamp(), min(), max(), round(), mod(), rem(), sin(), cos(), tan(), asin(), acos(), atan(), atan2(), pow(), sqrt(), hypot(), log(), exp(), abs(), sign() #49
  • [x] incorrectly parse compound selector #51
t
tbela99
published 0.7.1 •

Changelog

Source

v0.7.1

  • [x] fix nesting rules expansion #45
t
tbela99
published 0.7.0 •

Changelog

Source

v0.7.0

  • [x] fix merging rules
  • [ ] experimental CSS prefix removal
    • [x] declaration name
    • [ ] declaration value
    • [ ] exclude -webkit-* gradients
  • [x] css selector validation
    • [x] pseudo element
    • [x] partial pseudo class validation. does not validate parameters
    • [x] attribute selector
    • [x] combinator
    • [x] simple selector
    • [x] nested selector
    • [x] strict vs permissive validation: allow unknown items such as pseudo classes
      • [x] allow unknown pseudo classes
      • [x] allow unknown attribute selectors
  • [x] strip universal selector when possible
t
tbela99
published 0.6.0 •

Changelog

Source

v0.6.0

  • [x] light-dark() color
  • [x] system color
t
tbela99
published 0.5.4 •

Changelog

Source

V0.5.4

  • [x] incorrectly expand css nesting rules
t
tbela99
published 0.5.3 •

Changelog

Source

v0.5.3

  • [x] incorrectly expand css nesting rules