Angular will need some replacement
sass/dart-sass#154
We have a number of ideas, but nothing I'm able to publish yet. Will update soon.
That's what I wanted to hear, that it's on your radar. No need to provide details right now.
We've decided to deprecate /deep/ and >>>, and support ::ng-deep as a drop-in.
Here is our internal test case for this feature:
test('should handle ::ng-deep', () {
var css = '::ng-deep y {}';
shimAndExpect(css, 'y {}');
css = 'x ::ng-deep y {}';
shimAndExpect(css, 'x.$content y {}');
css = ':host > ::ng-deep .x {}';
shimAndExpect(css, '.$host > .x {}');
css = ':host ::ng-deep > .x {}';
shimAndExpect(css, '.$host > .x {}');
css = ':host > ::ng-deep > .x {}';
shimAndExpect(css, '.$host > > .x {}');
});
We've gotten confirmation this will be supported (parsable) in all major SASS tooling.
AngularDart 4.x.x will be the last major release to support either /deep/ or >>> (both, including ::ng-deep, will be available in 4.0). As a result, _native_ shadow DOM will also be deprecated (but not immediately removed), since there is no way after Chrome's /deep/ deprecation lands, and we don't have another story (yet).
NOTE: We will back-port and release 3.2.0 to unblock our users, but other packages (like angular_components) will need to be updated too in order to take advantage of this fully.
@leonsenft Was this included as part of #471 ?
@alorenzen Yes it was. Looks like it got swallowed up by https://github.com/dart-lang/angular/commit/302c3865c68a7ed5277a1804aea772be4b0f0df6 and we lost the commit message.
Most helpful comment
We've decided to deprecate
/deep/and>>>, and support::ng-deepas a drop-in.Here is our internal test case for this feature:
We've gotten confirmation this will be supported (parsable) in all major SASS tooling.
AngularDart
4.x.xwill be the last major release to support either/deep/ or>>>(both, including::ng-deep, will be available in 4.0). As a result, _native_ shadow DOM will also be deprecated (but not immediately removed), since there is no way after Chrome's/deep/deprecation lands, and we don't have another story (yet).NOTE: We will back-port and release
3.2.0to unblock our users, but other packages (likeangular_components) will need to be updated too in order to take advantage of this fully.