Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css isolation for asp.net core Web Application not working #31022

Closed
tanekim88 opened this issue Mar 18, 2021 · 6 comments · Fixed by #31257
Closed

css isolation for asp.net core Web Application not working #31022

tanekim88 opened this issue Mar 18, 2021 · 6 comments · Fixed by #31257
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug. feature-css-isolation This issue is related to CSS Isolation feature
Milestone

Comments

@tanekim88
Copy link

tanekim88 commented Mar 18, 2021

I created a fresh Asp.Net Web Application and added a _Layout.cshtml.css file to test if css isolation feature is working, as in the following screen shot
image

But when I run the application, I am seeing a weird letters on top of the file (i.e. "b-g6ltozs93r"), and the css content is not working either. It is supposed to have green background.

image

@mkArtakMSFT mkArtakMSFT added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates feature-css-isolation This issue is related to CSS Isolation feature investigate bug This issue describes a behavior which is not expected - a bug. and removed investigate labels Mar 18, 2021
@mkArtakMSFT mkArtakMSFT added this to the 6.0-preview4 milestone Mar 18, 2021
@mkArtakMSFT
Copy link
Member

Just a reminder for the team that we need to add a validation scenarios for this.

@mkArtakMSFT
Copy link
Member

We' ll also include the styles in templates going forward and that is tracked as part of #31030

@dodyg
Copy link

dodyg commented Mar 30, 2021

I can't make the CSS Isolation even for Index.html.css (Preview 2). Maybe it's already fixed in later version.

https://github.com/dodyg/practical-aspnetcore/tree/net5.0/projects/net6/css-isolation

@ghost ghost closed this as completed in #31257 Mar 30, 2021
@tanekim88
Copy link
Author

The problem still remains in Dotnet 6 Preview 3.

@SteveSandersonMS
Copy link
Member

@tanekim77 As far as I know, the fix went into preview 4, so it's expected that the issue is present in preview 3. @captainsafia is that correct?

@captainsafia
Copy link
Member

Correct -- I responded in the other issue.

You can try it out in the previews at https://github.com/dotnet/installer

@ghost ghost locked as resolved and limited conversation to collaborators May 19, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug. feature-css-isolation This issue is related to CSS Isolation feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants