fediversity.eu/node_modules/autoprefixer/lib/hacks/display-grid.js

22 lines
409 B
JavaScript
Raw Normal View History

2024-03-26 16:28:28 +01:00
let Value = require('../value')
class DisplayGrid extends Value {
constructor(name, prefixes) {
super(name, prefixes)
if (name === 'display-grid') {
this.name = 'grid'
}
}
/**
* Faster check for flex value
*/
check(decl) {
return decl.prop === 'display' && decl.value === this.name
}
}
DisplayGrid.names = ['display-grid', 'inline-grid']
module.exports = DisplayGrid