attribute when clicked off event code example
Example 1: does click event work only for buttons
<button>
<svg>
<use xlink:href="#gear"></use>
</svg>
</button>
Example 2: does click event work only for buttons
button > * {
pointer-events: none;
}