chromium/third_party/blink/renderer/core/dom/part.idl

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

// https://crbug.com/1453291
// https://github.com/WICG/webcomponents/blob/gh-pages/proposals/DOM-Parts.md

[RuntimeEnabled=DOMPartsAPI,Exposed=Window]
interface Part {
  [ImplementedAs=rootForBindings] readonly attribute PartRoot root;
  readonly attribute FrozenArray<DOMString> metadata;
  void disconnect();
};

// While Part is not directly constructible, PartInit is used to initialize
// the subclasses of Part.
dictionary PartInit {
  FrozenArray<DOMString> metadata;
};