/
githubmirror
/
amphtml
ОбзорДокументацияВойти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
amphtml/
third_party/webcomponentsjs/
..
LICENSE

Import Shadow CSS from webcomponentsjs (#4810)

10 лет назад
README.amp

♻️🚀 Dead-code-eliminate `ShadowCSS.js` (#38013)

4 года назад
ShadowCSS.js

♻️🚀 Dead-code-eliminate `ShadowCSS.js` (#38013)

4 года назад
README.amp
URL: https://github.com/webcomponents/webcomponentsjs
License: BSD
License File: https://github.com/webcomponents/webcomponentsjs/blob/master/LICENSE.md
 
Description:
Shadow DOM-related polyfills
 
Local Modifications:
- Stripped to only perform necessary Shadow CSS polyfilling.
- Shortened License based on intended functionality from build pipeline.
- Added feature switches that allows certain codepaths to be
dead-code-eliminated: `allowArraySelectors` and `isIeSupported`
- All exported functions were originally part of an object named `ShadowCSS`.
We instead export them as plain functions allow them to be
dead-code-eliminated, and for their names to be mangled.
This also involves changing references to each function from `this.x()` to
just `x()`
- Renamed `scopeSelector()` to `doScopeSelector()` since the original name
conflicts with argument `scopeSelector` after removing `this.`.
- Removed a `strict` argument before `opt_transformer` in `doScopeSelector`
to be replaced with the constant value for `strictStyling`.