|
Last change
on this file since 505f39a was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Working / before login
|
-
Property mode
set to
100644
|
|
File size:
379 bytes
|
| Line | |
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.