// 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.
// https://github.com/WICG/ScrollToTextFragment
[
Exposed=Window,
RuntimeEnabled=TextFragmentIdentifiers
] interface FragmentDirective {
[Measure, RuntimeEnabled=TextFragmentAPI, SameObject] readonly attribute FrozenArray<Directive> items;
[Measure, CallWith=ScriptState, RuntimeEnabled=TextFragmentAPI, NewObject] Promise<SelectorDirective> createSelectorDirective((Range or Selection) arg);
};