You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
409 B
22 lines
409 B
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
|