|
Last change
on this file was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Working / before login
|
-
Property mode
set to
100644
|
|
File size:
524 bytes
|
| Line | |
|---|
| 1 | let Declaration = require('../declaration')
|
|---|
| 2 |
|
|---|
| 3 | class TextDecorationSkipInk extends Declaration {
|
|---|
| 4 | /**
|
|---|
| 5 | * Change prefix for ink value
|
|---|
| 6 | */
|
|---|
| 7 | set(decl, prefix) {
|
|---|
| 8 | if (decl.prop === 'text-decoration-skip-ink' && decl.value === 'auto') {
|
|---|
| 9 | decl.prop = prefix + 'text-decoration-skip'
|
|---|
| 10 | decl.value = 'ink'
|
|---|
| 11 | return decl
|
|---|
| 12 | } else {
|
|---|
| 13 | return super.set(decl, prefix)
|
|---|
| 14 | }
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | TextDecorationSkipInk.names = [
|
|---|
| 19 | 'text-decoration-skip-ink',
|
|---|
| 20 | 'text-decoration-skip'
|
|---|
| 21 | ]
|
|---|
| 22 |
|
|---|
| 23 | module.exports = TextDecorationSkipInk
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.