blob: 189c0fc1e8f8da24a35a57c6a27669f30aecfb9f [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Experimental IDL of element-based offsets based on this proposal:
// https://github.com/w3c/csswg-drafts/issues/4337
enum Edge {"start", "end"};
dictionary ScrollTimelineElementBasedOffset {
Element target;
double threshold = 0.0;
Edge edge = "start";
// TODO(majidvp): Add other values from proposal. http://crbug.com/1023375
// DOMString rootMargin;
};