Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO List #2

Open
2 of 4 tasks
yisibl opened this issue Jun 25, 2015 · 0 comments
Open
2 of 4 tasks

TODO List #2

yisibl opened this issue Jun 25, 2015 · 0 comments

Comments

@yisibl
Copy link
Owner

yisibl commented Jun 25, 2015

  • 1 Remove all prefixes? if user want to run autoprefixer, they can do it later, 1 plugin = 1 task, also they will be able to select different browsers.

  • 2 I think you should use postcss-flexboxfixer and postcss-gradientfixer, becuase it is really hard part of CSS

  • 3 Support hacks like in Autoprefixer. Like:

    if ( hacks[unPrefixProp] ) {
    hacks[unPrefixProp](decl)
    } else {
    decl.cloneAfter({
          prop: unPrefixProp,
          value: unPrefixValue
      })
    }

    There are many more difficult properties., when we can’t use just decl.prop.replace(rePrefix, ''). So we need some files for this case. File will be like:

    hack['interpolation-mode'] = function (decl) {
    decl.prop = 'image-rendering';
    }
  • 4 We need some code to prevent double properties. Like:

    if ( decl.parent.nodes.some( (other) => other.prop == unPrefixProp && decl.value == unPrefixValue ) ) {
    decl.removeSelf()
    }

By @ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant