chromium/third_party/blink/renderer/core/layout/custom/layout_fragment.idl

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

// https://drafts.css-houdini.org/css-layout-api/#layoutfragment

[
  Exposed=LayoutWorklet,
  ImplementedAs=CustomLayoutFragment,
  RuntimeEnabled=CSSLayoutAPI
]
interface LayoutFragment {
  readonly attribute double inlineSize;
  readonly attribute double blockSize;

  attribute double inlineOffset;
  attribute double blockOffset;

  readonly attribute double? baseline;

  [CallWith=ScriptState] readonly attribute any data;
};