We have an update from WebKit team
Unfortunately the CoreMedia feature WebKit uses to add WebM support is disabled unless the framework is signed with an entitlement we can't use in open source builds.
https://bugs.webkit.org/show_bug.cgi?id=249982#c2
It is not clear why is Apple not allowing WebM for open source WebKit. Please feel free to post for clarification in WebKit.