René's URL Explorer Experiment


Title: Nested selectors in sass parent selector `&` are not encapsulate properly · Issue #50215 · angular/angular · GitHub

Open Graph Title: Nested selectors in sass parent selector `&` are not encapsulate properly · Issue #50215 · angular/angular

X Title: Nested selectors in sass parent selector `&` are not encapsulate properly · Issue #50215 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? No Description With the default value of View.encapsulation, nested selectors in sass parent selector & like below are not encapsulate properly. :host ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? No Description With the default value of View.encapsulation, nested selectors in sass parent selector & like be...

X Description: Which @angular/* package(s) are the source of the bug? compiler Is this a regression? No Description With the default value of View.encapsulation, nested selectors in sass parent selector & lik...

Opengraph URL: https://github.com/angular/angular/issues/50215

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nested selectors in sass parent selector `&` are not encapsulate properly","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncompiler\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWith the default value of View.encapsulation, nested selectors in sass parent selector `&` like below are not encapsulate properly.\r\n\r\n```\r\n:host {\r\n  dl {\r\n    color: blue;\r\n\r\n    dt {\r\n      font-weight: bold;\r\n      text-decoration: underline;\r\n    }\r\n  }\r\n\r\n  &[red] {\r\n    dl {\r\n      color: red;\r\n\r\n      dt {\r\n        font-weight: normal;\r\n        text-decoration: line-through;\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nGenerated style:\r\n\r\n```\r\n[_nghost-ffs-c12]   dl[_ngcontent-ffs-c12]{color:blue}\r\n[_nghost-ffs-c12]   dl[_ngcontent-ffs-c12]   dt[_ngcontent-ffs-c12]{font-weight:bold;text-decoration:underline}\r\n[red][_nghost-ffs-c12] dl{color:red}\r\n[red][_nghost-ffs-c12] dl dt{font-weight:normal;text-decoration:line-through}\r\n```\r\n\r\nSome attribute selectors are missing, so that styles are applied in the wrong order due to CSS Specificity.\r\n\r\n\u003cimg width=\"813\" alt=\"image\" src=\"https://user-images.githubusercontent.com/54160928/236989283-ea6d0277-1c6b-48b2-b3ed-6b1fdd3cc393.png\">\r\n\r\nExpected style is below (and angular 15.1.1 generate this properly).\r\n\r\n```\r\n[_nghost-ffs-c12]   dl[_ngcontent-ffs-c12]{color:blue}\r\n[_nghost-ffs-c12]   dl[_ngcontent-ffs-c12]   dt[_ngcontent-ffs-c12]{font-weight:bold;text-decoration:underline}\r\n[red][_nghost-ffs-c12] dl[_ngcontent-ffs-c12]{color:red}\r\n[red][_nghost-ffs-c12] dl[_ngcontent-ffs-c12] dt[_ngcontent-ffs-c12]{font-weight:normal;text-decoration:line-through}\r\n```\r\n\r\nangular 15.1.2+ reproduce this behavior.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/angular-p2auoh?file=src%2Fsome.component.scss\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular: 15.1.2\n```\n\n\n### Anything else?\n\nAngular 15.1.1 does not reproduce this.\r\nAngular 16.0.0 reproduce this.\r\n","author":{"url":"https://github.com/koji-nakamura-classi","@type":"Person","name":"koji-nakamura-classi"},"datePublished":"2023-05-09T04:10:10Z","url":"https://github.com/angular/angular/issues/50215"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:24648a52-f2ac-cb2c-1481-a628a76353da
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB60E:34DB8F:805178:AD0B51:6B00E2F2
html-safe-nonce37b4c2f13e8a795f5bfb99dc806be604e4b26e36e823730358222537d02c8903
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjBFOjM0REI4Rjo4MDUxNzg6QUQwQjUxOjZCMDBFMkYyIiwidmlzaXRvcl9pZCI6IjkxMjIyMzY2NjQ1OTE3MzYxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb9ba87528f1990afb2ec9ecb10dd3926e2a821c86e2c44251bdfd4fc6e14fb65
hovercard-subject-tagissue:1701288868
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/50215/issue_layout
twitter:imagehttps://opengraph.githubassets.com/740448d8cf1ff28a11c4c858679845810c25ba59ff9cc3e7bb7eafdd2fe6b40b/angular/angular/issues/50215
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/740448d8cf1ff28a11c4c858679845810c25ba59ff9cc3e7bb7eafdd2fe6b40b/angular/angular/issues/50215
og:image:altWhich @angular/* package(s) are the source of the bug? compiler Is this a regression? No Description With the default value of View.encapsulation, nested selectors in sass parent selector & like be...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekoji-nakamura-classi
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/50215#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50215
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F50215
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/50215
Reloadhttps://github.com/angular/angular/issues/50215
Reloadhttps://github.com/angular/angular/issues/50215
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50215
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/50215
Nested selectors in sass parent selector & are not encapsulate properlyhttps://github.com/angular/angular/issues/50215#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
core: CSS encapsulationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20CSS%20encapsulation%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/koji-nakamura-classi
koji-nakamura-classihttps://github.com/koji-nakamura-classi
on May 9, 2023https://github.com/angular/angular/issues/50215#issue-1701288868
https://user-images.githubusercontent.com/54160928/236989283-ea6d0277-1c6b-48b2-b3ed-6b1fdd3cc393.png
https://stackblitz.com/edit/angular-p2auoh?file=src%2Fsome.component.scsshttps://stackblitz.com/edit/angular-p2auoh?file=src%2Fsome.component.scss
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on May 9, 2023https://github.com/angular/angular/issues/50215#issuecomment-1539503084
#48558https://github.com/angular/angular/pull/48558
@JeanMechehttps://github.com/JeanMeche
JoostKhttps://github.com/JoostK
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
core: CSS encapsulationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20CSS%20encapsulation%22
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
on May 9, 2023https://github.com/angular/angular/issues/50215#event-9196927685
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on May 9, 2023https://github.com/angular/angular/issues/50215#event-9196927824
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on May 9, 2023https://github.com/angular/angular/issues/50215#issuecomment-1539615297
#49118https://github.com/angular/angular/pull/49118
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Jun 10, 2023https://github.com/angular/angular/issues/50215#issuecomment-1585612660
#49100https://github.com/angular/angular/issues/49100
JeanMechehttps://github.com/JeanMeche
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 10, 2023https://github.com/angular/angular/issues/50215#event-9490553817
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 11, 2023https://github.com/angular/angular/issues/50215#issuecomment-1629901751
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jul 11, 2023https://github.com/angular/angular/issues/50215#event-9781010107
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/50215
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/50215
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
core: CSS encapsulationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20CSS%20encapsulation%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.