Class StickyPositionConstraint

java.lang.Object
org.openqa.selenium.devtools.v85.layertree.model.StickyPositionConstraint

public class StickyPositionConstraint extends Object
Sticky position constraints.
  • Constructor Details

    • StickyPositionConstraint

      public StickyPositionConstraint(Rect stickyBoxRect, Rect containingBlockRect, Optional<LayerId> nearestLayerShiftingStickyBox, Optional<LayerId> nearestLayerShiftingContainingBlock)
  • Method Details

    • getStickyBoxRect

      public Rect getStickyBoxRect()
      Layout rectangle of the sticky element before being shifted
    • getContainingBlockRect

      public Rect getContainingBlockRect()
      Layout rectangle of the containing block of the sticky element
    • getNearestLayerShiftingStickyBox

      public Optional<LayerId> getNearestLayerShiftingStickyBox()
      The nearest sticky layer that shifts the sticky box
    • getNearestLayerShiftingContainingBlock

      public Optional<LayerId> getNearestLayerShiftingContainingBlock()
      The nearest sticky layer that shifts the containing block