Начат фронтенд
This commit is contained in:
18
node_modules/autoprefixer/lib/hacks/flex-direction.js
generated
vendored
18
node_modules/autoprefixer/lib/hacks/flex-direction.js
generated
vendored
@@ -1,7 +1,14 @@
|
||||
let Declaration = require('../declaration')
|
||||
let flexSpec = require('./flex-spec')
|
||||
let Declaration = require('../declaration')
|
||||
|
||||
class FlexDirection extends Declaration {
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
normalize() {
|
||||
return 'flex-direction'
|
||||
}
|
||||
|
||||
/**
|
||||
* Use two properties for 2009 spec
|
||||
*/
|
||||
@@ -20,7 +27,7 @@ class FlexDirection extends Declaration {
|
||||
}
|
||||
|
||||
let v = decl.value
|
||||
let dir, orient
|
||||
let orient, dir
|
||||
if (v === 'inherit' || v === 'initial' || v === 'unset') {
|
||||
orient = v
|
||||
dir = v
|
||||
@@ -46,13 +53,6 @@ class FlexDirection extends Declaration {
|
||||
return decl.parent.insertBefore(decl, cloned)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
normalize() {
|
||||
return 'flex-direction'
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean two properties for 2009 spec
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user