Начат фронтенд
This commit is contained in:
20
node_modules/autoprefixer/lib/hacks/block-logical.js
generated
vendored
20
node_modules/autoprefixer/lib/hacks/block-logical.js
generated
vendored
@@ -1,16 +1,6 @@
|
||||
let Declaration = require('../declaration')
|
||||
|
||||
class BlockLogical extends Declaration {
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
normalize(prop) {
|
||||
if (prop.includes('-before')) {
|
||||
return prop.replace('-before', '-block-start')
|
||||
}
|
||||
return prop.replace('-after', '-block-end')
|
||||
}
|
||||
|
||||
/**
|
||||
* Use old syntax for -moz- and -webkit-
|
||||
*/
|
||||
@@ -20,6 +10,16 @@ class BlockLogical extends Declaration {
|
||||
}
|
||||
return prefix + prop.replace('-block-end', '-after')
|
||||
}
|
||||
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
normalize(prop) {
|
||||
if (prop.includes('-before')) {
|
||||
return prop.replace('-before', '-block-start')
|
||||
}
|
||||
return prop.replace('-after', '-block-end')
|
||||
}
|
||||
}
|
||||
|
||||
BlockLogical.names = [
|
||||
|
||||
Reference in New Issue
Block a user