|
Last change
on this file since 505f39a was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Working / before login
|
-
Property mode
set to
100644
|
|
File size:
409 bytes
|
| Line | |
|---|
| 1 | let Value = require('../value')
|
|---|
| 2 |
|
|---|
| 3 | class 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 |
|
|---|
| 19 | DisplayGrid.names = ['display-grid', 'inline-grid']
|
|---|
| 20 |
|
|---|
| 21 | module.exports = DisplayGrid
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.