Lynx

-x-caret-gradient

Introduction

The -x-caret-gradient property sets the gradient used to paint the text insertion caret in editable elements.

Syntax

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

Values

  • none
    Uses the default caret paint.

  • <gradient>
    Sets the gradient brush for the caret.

Formal definition

Initial valuenone
Applies toinput and textarea
Inheritedno
Animatableno

Formal syntax

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

Differences from Web

  • This is a Lynx-specific property.

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.