This is a terrible law. How exactly do you measure the compensation of the CEO of Ikea (moving into SF soon at 6th and Market), Adidas, DJI, Atlassian, Spotify etc? Exchange rates fluctuate a lot and stock based compensation is tricky.
What would you do instead?
What I would do instead is tax highly paid executives. This does not have the side-effect of making companies only use temp firms (as described above) if they need a barista or receptionist.