box-shadow.js 386 B

123456789101112131415
  1. var plugin = {
  2. level1: {
  3. property: function boxShadow(_rule, property) {
  4. var values = property.value;
  5. // remove multiple zeros
  6. if (values.length == 4 && values[0][1] === '0' && values[1][1] === '0' && values[2][1] === '0' && values[3][1] === '0') {
  7. property.value.splice(2);
  8. property.dirty = true;
  9. }
  10. }
  11. }
  12. };
  13. module.exports = plugin;