tblue;
    }
  </style>

  <canvas width="1000" height="200"></canvas>

  <script type="module">
    // TODO:
    // - Fix incorrect IME position.
    // - Add support for mouse text selection.
    // - Fix random IME appearance.
    // - Add support for copy/paste.

    // Caret style.
    const CARET_WIDTH = 2.5;
    const CARET_COLOR = "black";
    const BLINK_SPEED = 1000; // Smaller = faster.

    // Selection style.
    const SELECTION_COLOR = "black";
    const SELECTION_TEXT_COLOR = "white";

    //