Add a port of Mozilla's tests for Element.closest.