hyTags
HomeHome DocumentationDocumentation

selection-is-first-child

Checks if the selected element is the first child of its parent.
Parameter
Type
Description
return
bool
True if first child, false otherwise
Test Case:Check if element is first child
    <div></div>
    
    <selection-is-first-child>
    <assert-true>
    
    👆 Try to change something!
  • Test succeeded Test failed