Example of custom dropdown select element.

Such select can have additional buttons and other elements.

Button having role="dropdown" will play a role of dropdown button.

Custom select must have exactly three elements. First must be <caption> and last element will serve as a popup element