|
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:
504 bytes
|
| Line | |
|---|
| 1 | let Declaration = require('../declaration')
|
|---|
| 2 | let utils = require('../utils')
|
|---|
| 3 |
|
|---|
| 4 | class BackgroundClip extends Declaration {
|
|---|
| 5 | constructor(name, prefixes, all) {
|
|---|
| 6 | super(name, prefixes, all)
|
|---|
| 7 |
|
|---|
| 8 | if (this.prefixes) {
|
|---|
| 9 | this.prefixes = utils.uniq(
|
|---|
| 10 | this.prefixes.map(i => {
|
|---|
| 11 | return i === '-ms-' ? '-webkit-' : i
|
|---|
| 12 | })
|
|---|
| 13 | )
|
|---|
| 14 | }
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | check(decl) {
|
|---|
| 18 | return decl.value.toLowerCase() === 'text'
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | BackgroundClip.names = ['background-clip']
|
|---|
| 23 |
|
|---|
| 24 | module.exports = BackgroundClip
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.