polyfills
polyfills copied to clipboard
Web Components Polyfills
### Description i use polyfills with npm step 1: npm install @webcomponents/webcomponentsjs step 2: add script then i got the error: Uncaught SyntaxError: Unexpected token '
### Description In a stock, non-ejected, `create-react-app` scaffolded application, using the `@webcomponents/scoped-custom-element-registry` polyfill package results in sourcemap warnings during the build step potentially caused by the sourcemaps being malformed? ###...
## Description Please consider altering the polyfill to keep JSDOM's global `customElements` registry intact. This particular instance also includes some _internal bookkeeping the headless browser uses. Swapping it out completely...
Direct define would cause enumerable issue. This behavior may break some js lib. ```js Object.keys(document.querySelectorAll('body')); // 0, item, namedItem var buttons = document.querySelectorAll('button'); Object.keys(buttons).forEach(function(i) { var button = buttons[i]; button.addEventListener(/*...*/);...
Bumps [moment](https://github.com/moment/moment) to 2.29.4 and updates ancestor dependency [rollup-plugin-license](https://github.com/mjeanroy/rollup-plugin-license). These dependencies need to be updated together. Updates `moment` from 2.23.0 to 2.29.4 Changelog Sourced from moment's changelog. 2.29.4 Release Jul...
### Reference Issue https://github.com/webcomponents/polyfills/issues/8 Migrated from: https://github.com/webcomponents/shadycss/pull/242 #### Original description: This PR adds a minimal CSS calc() parser strictly for flattening nested calc() expressions which may be the result of...
### Description We have this CSS configuring custom CSS properties for a component: ```css :host([theme~="xlarge"]) { --vaadin-avatar-group-overlap: 12px; --vaadin-avatar-group-overlap-border: 3px; } :host([theme~="large"]) { --vaadin-avatar-group-overlap: 10px; --vaadin-avatar-group-overlap-border: 3px; } :host([theme~="small"]) {...
### Description If `webcomponents-loader.js` is loaded asynchronously, but runs while `document.readyState` is still `loading`, then it fails to load the polyfills. #### Steps to Reproduce 1. Load the `webcomponents-loader.js` script...
This PR is very similar to #509. That PR already set up WTR within the repo and this package doesn't have anything fancy going on in its tests, so this...
We should migrate the tests from WCT to WTR. - [x] - [ ] - [ ] [add others here]