// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.LayerTree
{
///
/// Sticky position constraints.
///
[System.Runtime.Serialization.DataContractAttribute]
public class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// Layout rectangle of the sticky element before being shifted
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("stickyBoxRect"), IsRequired = (true))]
public CefSharp.DevTools.DOM.Rect StickyBoxRect
{
get;
set;
}
///
/// Layout rectangle of the containing block of the sticky element
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("containingBlockRect"), IsRequired = (true))]
public CefSharp.DevTools.DOM.Rect ContainingBlockRect
{
get;
set;
}
///
/// The nearest sticky layer that shifts the sticky box
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("nearestLayerShiftingStickyBox"), IsRequired = (false))]
public string NearestLayerShiftingStickyBox
{
get;
set;
}
///
/// The nearest sticky layer that shifts the containing block
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("nearestLayerShiftingContainingBlock"), IsRequired = (false))]
public string NearestLayerShiftingContainingBlock
{
get;
set;
}
}
}