apply same ShadowDOM polyfill defaulting rules to build and debug versions