source: frontend/node_modules/autoprefixer/lib/hacks/display-grid.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 409 bytes
RevLine 
[9af201e]1let Value = require('../value')
2
3class DisplayGrid extends Value {
4 constructor(name, prefixes) {
5 super(name, prefixes)
6 if (name === 'display-grid') {
7 this.name = 'grid'
8 }
9 }
10
11 /**
12 * Faster check for flex value
13 */
14 check(decl) {
15 return decl.prop === 'display' && decl.value === this.name
16 }
17}
18
19DisplayGrid.names = ['display-grid', 'inline-grid']
20
21module.exports = DisplayGrid
Note: See TracBrowser for help on using the repository browser.