|
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:
496 bytes
|
| Line | |
|---|
| 1 | let Declaration = require('../declaration')
|
|---|
| 2 |
|
|---|
| 3 | class GridRowAlign extends Declaration {
|
|---|
| 4 | /**
|
|---|
| 5 | * Do not prefix flexbox values
|
|---|
| 6 | */
|
|---|
| 7 | check(decl) {
|
|---|
| 8 | return !decl.value.includes('flex-') && decl.value !== 'baseline'
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * Change IE property back
|
|---|
| 13 | */
|
|---|
| 14 | normalize() {
|
|---|
| 15 | return 'align-self'
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | /**
|
|---|
| 19 | * Change property name for IE
|
|---|
| 20 | */
|
|---|
| 21 | prefixed(prop, prefix) {
|
|---|
| 22 | return prefix + 'grid-row-align'
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | GridRowAlign.names = ['grid-row-align']
|
|---|
| 27 |
|
|---|
| 28 | module.exports = GridRowAlign
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.