hyTags
HomeHome DocumentationDocumentation

rect-get-top

Gets the top position of a rectangle.
Parameter
Type
Description
self
Rect
The rectangle to get the top position from.
return
number
The top position of the rectangle.
Test Case:Get top position of rect
    <div style="position: absolute; top: 2px; left: 3px; width: 100px; height: 50px"></div>
    
    <selection-get-frame-rect>
    <rect-get-top>
    <assert-equal value="2" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed