feat(compiler): add support ::ng-deep
- /deep/ is deprecated and being removed from Chrome - >>> is semantically invalid in a stylesheet - sass will no longer support either in any version of sass -> use ::ng-deep in emulated shadow DOM mode Because the deep combinator is deprecated in the CSS spec, `/deep/`, `>>>` and `::ng-deep` are also deprecated in emulated shadow DOM mode and will be removed in the future. see https://www.chromestatus.com/features/6750456638341120
This commit is contained in:

committed by
Matias Niemelä

parent
81734cf7b6
commit
b754e600e3
@ -513,7 +513,11 @@ const _shadowDOMSelectorsRe = [
|
||||
/\/shadow-deep\//g,
|
||||
/\/shadow\//g,
|
||||
];
|
||||
const _shadowDeepSelectors = /(?:>>>)|(?:\/deep\/)/g;
|
||||
|
||||
// The deep combinator is deprecated in the CSS spec
|
||||
// Support for `>>>`, `deep`, `::ng-deep` is then also deprecated and will be removed in the future.
|
||||
// see https://github.com/angular/angular/pull/17677
|
||||
const _shadowDeepSelectors = /(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g;
|
||||
const _selectorReSuffix = '([>\\s~+\[.,{:][\\s\\S]*)?$';
|
||||
const _polyfillHostRe = /-shadowcsshost/gim;
|
||||
const _colonHostRe = /:host/gim;
|
||||
|
Reference in New Issue
Block a user