Solving some similar problems, but the aim of this appears to be a mega-polyfil playground for the (still work in progress) HTML Web Components standards:
https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shado...
https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/impor...