For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/properties/-x-caret-gradient.md.
Lynx
  • English
  • -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.