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

# -x-caret-gradient

APISummary
## 介绍

`-x-caret-gradient` 属性设置可编辑元件中文本插入光标的渐变。

## 语法

```css
input {
  -x-caret-gradient: linear-gradient(to bottom, #3b82f6, #a855f7);
}
```

### 取值

- `none`<br />
  使用默认光标绘制。

- [`<gradient>`](/next/zh/api/css/data-type/gradient.md)<br />
  设置光标的渐变画刷。

## 形式定义


| 初始值 | none |
| 适用元素 | `input` 和 `textarea` |
| 是否支持继承 | no |
| 是否支持动画 | no |


## 形式语法

```
-x-caret-gradient = none | <gradient>
```

## 与 Web 的区别

- Lynx 特有的属性。

## 兼容性


**Compatibility Table**
**Query:** `css.properties.-x-caret-gradient`

**Platform Support**

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

