outline.js 438 B

12345678910111213141516171819
  1. var OptimizationLevel = require('../../../options/optimization-level').OptimizationLevel;
  2. var plugin = {
  3. level1: {
  4. property: function outline(_rule, property, options) {
  5. var values = property.value;
  6. if (!options.level[OptimizationLevel.One].optimizeOutline) {
  7. return;
  8. }
  9. if (values.length == 1 && values[0][1] == 'none') {
  10. values[0][1] = '0';
  11. }
  12. }
  13. }
  14. };
  15. module.exports = plugin;