GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(compiler): scope nested CSS rules by crisbeto · Pull Request #69885 · angular/angular

Conversation

@crisbeto

@crisbeto crisbeto commented Jul 22, 2026

Copy link
Copy Markdown
Member

This is a second attempt at scoping nested CSS rules after not being able to land #50693. I took some extra precautions to try and avoid the crash that was happening last time.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jul 22, 2026
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jul 22, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 22, 2026
@crisbeto crisbeto mentioned this pull request Jul 27, 2026
fix(compiler): strip ::ng-deep from nested selectors #69959
Closed
crisbeto added a commit to crisbeto/angular that referenced this pull request Jul 27, 2026
@crisbeto
fix(compiler): strip ::ng-deep from nested selectors
ddf740f
Adds some temporary logic to strip `::ng-deep` from nested selectors which will help us land angular#69885.
@crisbeto
crisbeto force-pushed the nested-css-again branch 2 times, most recently from 369bd13 to 747233b Compare August 3, 2026 14:57
@crisbeto

crisbeto commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

Passing TGP after we land some client fixes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crisbeto
crisbeto requested a review from mattrbeck August 3, 2026 15:01
@crisbeto crisbeto added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Aug 3, 2026
@crisbeto
crisbeto marked this pull request as ready for review August 3, 2026 15:01
mattrbeck
mattrbeck reviewed Aug 4, 2026
View reviewed changes
Comment thread packages/compiler/test/shadow_css/nesting_spec.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/test/shadow_css/nesting_spec.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/src/shadow_css.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/test/shadow_css/nesting_spec.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/test/shadow_css/nesting_spec.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/src/shadow_css.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@crisbeto
crisbeto force-pushed the nested-css-again branch from 747233b to 5cea734 Compare August 4, 2026 09:08
@crisbeto

crisbeto commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Fresh passing TGP that includes the latest code changes and the client fixes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mattrbeck
mattrbeck reviewed Aug 5, 2026
View reviewed changes
Comment thread packages/compiler/test/shadow_css/nesting_spec.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/src/shadow_css.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/compiler/src/shadow_css.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

crisbeto added 3 commits August 5, 2026 12:49
@crisbeto
fix(compiler): scope nested CSS rules
00e9279
This is a second attempt at scoping nested CSS rules after not being able to land angular#50693. I took some extra precautions to try and avoid the crash that was happening last time.
@crisbeto
fix(compiler): do not encapsulate nested selectors if parent contains…
eca4eed
… ::ng-deep

Updates the nested selector encapsulation logic so that it skips encapsulating child selectors if the parent contains `::ng-deep`. The reasoning is that `:host ::ng-deep { .foo {} }` should behave as `:host ::ng-deep .foo {}`.
@crisbeto
test(compiler): add test for imports with unquoted URL
879d4f1
Adds a test to cover the case where an `@import` might have a URL with special characters that isn't quoted.
@crisbeto
crisbeto force-pushed the nested-css-again branch from 5cea734 to 879d4f1 Compare August 5, 2026 10:53
crisbeto
crisbeto commented Aug 5, 2026
View reviewed changes

@crisbeto crisbeto left a comment

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feedback should be addressed now.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mattrbeck
mattrbeck approved these changes Aug 5, 2026
View reviewed changes
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 5, 2026
@amishne
amishne merged commit 11b4089 into angular:main Aug 7, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@amishne

amishne commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

  • main: 11b4089
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 27, 2026
fix(form-field): projected label styles stop applying on Angular 22.2 ngx-signal-forms/ngx-signal-forms#552
Closed
fix(form-field): keep projected label and legend styles on Angular 22.2 ngx-signal-forms/ngx-signal-forms#554
Merged
fix(form-field): forced-colors focus rule loses to nested rules on Angular 22.2 ngx-signal-forms/ngx-signal-forms#556
Closed
This was referenced Sep 27, 2026
fix(form-field): plain appearance keeps the standard border on Angular 22.0 and 22.1 ngx-signal-forms/ngx-signal-forms#557
Closed
fix(form-field): keep forced-colors overrides winning on Angular 22.2 ngx-signal-forms/ngx-signal-forms#559
Merged
@anhallbe anhallbe mentioned this pull request Sep 29, 2026
Nested & selectors inside :host get _ngcontent attribute and no longer match (regression in 22.2.0) #71050
Open
This was referenced Sep 29, 2026
fix(form-field): forced-colors overrides do not reach outline textual fields ngx-signal-forms/ngx-signal-forms#550
Closed
fix(form-field): hovered and disabled fields lose forced-colors system colours ngx-signal-forms/ngx-signal-forms#558
Closed
fix(form-field): flatten the plain appearance reset so it wins on Angular 22.0 and 22.1 ngx-signal-forms/ngx-signal-forms#630
Merged
@irontaek irontaek mentioned this pull request Oct 1, 2026
fix(compiler): avoid leaking ::ng-deep detection state between rules #71119
Merged
4 of 5 tasks
@rene-schakmann rene-schakmann mentioned this pull request Oct 3, 2026
fix(compiler): do not scope nested compound selectors starting with & #71152
Closed
4 of 14 tasks
@angular-automatic-lock-bot

angular-automatic-lock-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Oct 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@mattrbeck mattrbeck mattrbeck approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: minor This PR is targeted for the next minor release

Projects

None yet

Milestone

Backlog

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@crisbeto @amishne @mattrbeck
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.