Sanitize v4.0.0 Release Notes

Release Date: 2015-04-20 // almost 9 years ago
  • Potentially breaking changes

    • Added two new CSS config settings, :at_rules_with_properties and :at_rules_with_styles. These allow you to define which at-rules should be allowed to contain properties and which should be allowed to contain style rules. Previously this was hard-coded internally. #111

    The previous :at_rules setting still exists, and defines at-rules that may not have associated blocks, such as @import. If you have a custom config that contains an :at_rules setting, you may need to move rules can have blocks to either :at_rules_with_properties or :at_rules_with_styles.

    See Sanitize's relaxed config for an example.

    Other changes

    • โž• Added full support for CSS @page rules in the relaxed config, including support for all page-margin box rules (such as @top-left, @bottom-center, etc.)

    • โž• Added the following CSS at-rules to the relaxed config:

      • @-moz-keyframes
      • @-o-keyframes
      • @-webkit-keyframes
      • @document
    • โž• Added a whole bunch of CSS properties to the relaxed config. View the complete list here.

    • ๐ŸŽ Small performance improvements.

    • ๐Ÿ›  Fixed: Upgraded Crass to 1.0.2 to pick up a fix that affected the parsing of CSS @page rules.