|
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:
790 bytes
|
| Rev | Line | |
|---|
| [2058e5c] | 1 | let Declaration = require('../declaration')
|
|---|
| 2 |
|
|---|
| 3 | class MaskBorder extends Declaration {
|
|---|
| 4 | /**
|
|---|
| 5 | * Return property name by final spec
|
|---|
| 6 | */
|
|---|
| 7 | normalize() {
|
|---|
| 8 | return this.name.replace('box-image', 'border')
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * Return flex property for 2012 spec
|
|---|
| 13 | */
|
|---|
| 14 | prefixed(prop, prefix) {
|
|---|
| 15 | let result = super.prefixed(prop, prefix)
|
|---|
| 16 | if (prefix === '-webkit-') {
|
|---|
| 17 | result = result.replace('border', 'box-image')
|
|---|
| 18 | }
|
|---|
| 19 | return result
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | MaskBorder.names = [
|
|---|
| 24 | 'mask-border',
|
|---|
| 25 | 'mask-border-source',
|
|---|
| 26 | 'mask-border-slice',
|
|---|
| 27 | 'mask-border-width',
|
|---|
| 28 | 'mask-border-outset',
|
|---|
| 29 | 'mask-border-repeat',
|
|---|
| 30 | 'mask-box-image',
|
|---|
| 31 | 'mask-box-image-source',
|
|---|
| 32 | 'mask-box-image-slice',
|
|---|
| 33 | 'mask-box-image-width',
|
|---|
| 34 | 'mask-box-image-outset',
|
|---|
| 35 | 'mask-box-image-repeat'
|
|---|
| 36 | ]
|
|---|
| 37 |
|
|---|
| 38 | module.exports = MaskBorder
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.