// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/mediacapture-region/#dom-croptarget
[Exposed=(Window,Worker), Serializable, RuntimeEnabled = RegionCapture]
interface CropTarget {
[
Exposed=Window,
CallWith = ScriptState,
RaisesException,
MeasureAs = RegionCapture,
RuntimeEnabled = RegionCapture
] static Promise<CropTarget> fromElement(Element element);
};