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

Reset possibile css inheritance #15

Closed
fabioricali opened this issue Sep 16, 2019 · 1 comment
Closed

Reset possibile css inheritance #15

fabioricali opened this issue Sep 16, 2019 · 1 comment
Labels
css enhancement New feature or request

Comments

@fabioricali
Copy link
Member

Taking inspiration from this https://github.com/Heydon/cress it could be an idea to reset the style for each child components prepending this:

[data-uid="1"],
[data-uid="1"] * { 
  all: initial 
}
@fabioricali fabioricali added the enhancement New feature or request label Sep 16, 2019
@fabioricali
Copy link
Member Author

fabioricali commented Sep 16, 2019

Maybe a solution could be adding a new rule called ":reset" in the style in this way:

<style>
:reset;
/*other rules*/
</style>

Or adding an attribute called "reset" to tag style:

<style reset>
/*other rules*/
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant