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