if-focus-last
Syntax
if-focus-last: selector;
This conditional will return true if the last element found in the selector set is focused on the page.
selector set = Any CSS selector that will return more than one item. It will work with just one item, but it is designed for multiple items in the selector set.
For example, this conditional will return true if the last item in the ".srch-Res a" selector set has the focus of the page.
@conditional srchFocusLast {
if-focus-last: .srch-Res a;
}
.srch-Res a:srchFocusLast:keydownArrowDown {
console-log: "You have reached the end of the list.";
}