Skip to content

Commit

Permalink
Merge pull request #288 from SukkaW/prefix-tab-size
Browse files Browse the repository at this point in the history
support tab-size prefix
  • Loading branch information
thysultan committed Apr 23, 2022
2 parents c3c05cd + 0921868 commit dc42414
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Prefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export function prefix (value, length, children) {
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
return WEBKIT + value + value
// tab-size
case 4789:
return MOZ + value + value
// appearance, user-select, transform, hyphens, text-size-adjust
case 5349: case 4246: case 4810: case 6968: case 2756:
return WEBKIT + value + MOZ + value + MS + value + value
Expand Down
4 changes: 4 additions & 0 deletions test/Prefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,8 @@ describe('Prefixer', () => {
expect(prefix(`scroll-margin-bottom:0;`, 20)).to.equal([`scroll-snap-margin-bottom:0;`, `scroll-margin-bottom:0;`].join(''))
expect(prefix(`scroll-margin-left:0;`, 18)).to.equal([`scroll-snap-margin-left:0;`, `scroll-margin-left:0;`].join(''))
})

test('tab-size', () => {
expect(prefix(`tab-size:1;`, 8)).to.equal([`-moz-tab-size:1;`, `tab-size:1;`].join(''))
})
})

0 comments on commit dc42414

Please sign in to comment.