updating shim rules for native shadow dom and polyfill