--- locate-position --- // Test `locate`. #v(10pt) = Introduction #context test(locate().position().y, 20pt) --- locate-position-trailing-tag --- // Test locating the position of a tag with no following content. #context test(here().position().y, 10pt) #box[] #v(10pt) #context test(here().position().y, 20pt) --- locate-missing-label --- // Error: 10-25 label `` does not exist in the document #context locate() --- locate-duplicate-label --- = Introduction = Introduction // Error: 10-25 label `` occurs multiple times in the document #context locate() --- locate-element-selector --- #v(10pt) = Introduction #context test(locate(heading).position().y, 20pt) --- locate-element-selector-no-match --- // Error: 10-25 selector does not match any element #context locate(heading) --- locate-element-selector-multiple-matches --- = Introduction = Introduction // Error: 10-25 selector matches multiple elements #context locate(heading)