Possible to clear input field with icon?

I noticed on the Filter block YouTube demos that there’s an option to clear the search field:


However, it looks like the X is called natively through Chrome, and it doesn’t work in Firefox.

Is it possible to put our own icon in the filter and use that to clear the search instead?

I still haven’t been able to figure out if maybe that’s what the Options in User Selection could be used for?