frontend/.pnpm-store/v3/files/df/427cc694e544da8680710ab0c34d9b97e420bc9d2ec12ac24d2aaab082fb783144612e6563b5a1f30a79f2c47c6b771c2efd06a5798f4abbe55ff29bc5b51c

34 lines
672 B
Plaintext

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