> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# mask-composite

APISummary
## Introduction

The `mask-composite` CSS property sets the compositing operation used on the current mask layer with the mask layers below it.

## Syntax

```css
mask-image: linear-gradient(#000, #000), linear-gradient(#000, transparent);
mask-composite: exclude;
```

### Values

- `add`<br />
  Places the current mask layer over the mask layers below it.

- `subtract`<br />
  Subtracts the current mask layer from the mask layers below it.

- `intersect`<br />
  Keeps the overlapping area between the current mask layer and the mask layers below it.

- `exclude`<br />
  Keeps the areas that do not overlap between the current mask layer and the mask layers below it.

## Formal definition


| Initial value | add |
| Applies to | `view` only |
| Inherited | no |
| Animatable | no |


## Formal syntax

```
mask-composite = <compositing-operator>#

<compositing-operator> =
  add        |
  subtract   |
  intersect  |
  exclude
```

## Differences from the Web

- Global values are not supported.

## Compatibility


**Compatibility Table**
**Query:** `css.properties.mask-composite`

**MDN Reference:** [https://developer.mozilla.org/en-US/docs/Web/CSS/mask-composite](https://developer.mozilla.org/en-US/docs/Web/CSS/mask-composite)

**Specifications:**
- [https://drafts.fxtf.org/css-masking-1/#the-mask-composite](https://drafts.fxtf.org/css-masking-1/#the-mask-composite)

**Platform Support**

| Platform | Version Added | Notes |
|----------|---------------|-------|
| Android | ❌ No | - |
| iOS | ❌ No | - |
| HarmonyOS | ❌ No | - |
| Clay Android | ❌ No | - |
| Clay macOS | 4.0 | - |
| Clay Windows | 4.0 | - |
| Web | ✅ Yes | - |

**Description:** The mask-composite CSS property represents a compositing operation used on the current mask layer with the mask layers below it.

