flex-wrap.js 379 B

12345678910111213141516171819
  1. let flexSpec = require('./flex-spec')
  2. let Declaration = require('../declaration')
  3. class FlexWrap extends Declaration {
  4. /**
  5. * Don't add prefix for 2009 spec
  6. */
  7. set(decl, prefix) {
  8. let spec = flexSpec(prefix)[0]
  9. if (spec !== 2009) {
  10. return super.set(decl, prefix)
  11. }
  12. return undefined
  13. }
  14. }
  15. FlexWrap.names = ['flex-wrap']
  16. module.exports = FlexWrap