chromium/third_party/blink/renderer/core/editing/ime/text_format_update_event.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// The textformatupdate event is fired when the input method desires a specific
// region to be styled in a certain fashion, limited to the style properties
// that correspond with the properties that are exposed on TextFormatUpdateEvent
// (e.g. backgroundColor, textDecoration, etc.).

// Spec draft:
// https://w3c.github.io/edit-context/#textformatupdateevent
[
  Exposed=Window
] interface TextFormatUpdateEvent : Event {
    constructor(DOMString type, optional TextFormatUpdateEventInit options = {});

    sequence<TextFormat> getTextFormats();
};