The following div won’t properly use both masks in Safari until you highlight the div by selecting the text on both sides (or press ⌘A), or seemingly wait an arbitrary amount of time.

It works fine in other browsers.