Skip to content

Commit

Permalink
Merge pull request #309 from Olivia-SY129/master
Browse files Browse the repository at this point in the history
fix: webkit mask-composite values
  • Loading branch information
thysultan authored Aug 21, 2024
2 parents 0990417 + a12c24d commit 4e348b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Prefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ export function prefix (value, length, children) {
case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
// 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:
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
case 6391: case 5879: case 5623: case 6135: case 4599:
return WEBKIT + value + value
// mask-composite
case 4855:
return WEBKIT + value.replace('add', 'source-over').replace('substract', 'source-out').replace('intersect', 'source-in').replace('exclude', 'xor') + value
// tab-size
case 4789:
return MOZ + value + value
Expand Down

0 comments on commit 4e348b7

Please sign in to comment.