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

Abuse of CSS isolation #4

Closed
tossnet opened this issue Sep 16, 2021 · 2 comments
Closed

Abuse of CSS isolation #4

tossnet opened this issue Sep 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@tossnet
Copy link
Contributor

tossnet commented Sep 16, 2021

It seems preferable to use as much as possible a css / .razor

@iso8859
Copy link

iso8859 commented Sep 17, 2021

Css isolation is only interesting on small HTML fragment.
When you use it an attribute is added in every HTML tag.
For example

<table b-uvsbxoi8u9=""><colgroup b-uvsbxoi8u9=""> ...

If you generate a lot of HTML this attribute bloat your page.

@tossnet
Copy link
Contributor Author

tossnet commented Sep 17, 2021

Yes I know how it works, and I'm not convinced that it affects performance.

Before this existed, in a project with 20 razor components, these global CSS styles were very complex to manage and to find in the solution.

If there is a small loss of performance (I didn't see it at all), then there is a big gain in the project.

Another problem is when customizing the CSS of the UI framework used; This implies to use globally !IMPORTANT :/ Locally it is often more convenient .

@dvoituron dvoituron added the enhancement New feature or request label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants