Urara-Blog/node_modules/.pnpm-store/v3/files/0f/709b55ecbd74d94c77d2e88feb93b2979df4175053835578fcdab661dde3479263b1190fb4bc32166bf09f4f87ded81c818e0a0f8b0c1983728359eca78fa1
2022-08-14 01:14:53 +08:00

33 lines
670 B
Text

let Declaration = require('../declaration')
class GridStart extends Declaration {
/**
* Do not add prefix for unsupported value in IE
*/
check(decl) {
let value = decl.value
return !value.includes('/') && !value.includes('span')
}
/**
* Return a final spec property
*/
normalize(prop) {
return prop.replace('-start', '')
}
/**
* Change property name for IE
*/
prefixed(prop, prefix) {
let result = super.prefixed(prop, prefix)
if (prefix === '-ms-') {
result = result.replace('-start', '')
}
return result
}
}
GridStart.names = ['grid-row-start', 'grid-column-start']
module.exports = GridStart