Skip to content

[css-mixins-1] how do @function rules cross shadow boundaries? #10953

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

Closed
keithamus opened this issue Sep 26, 2024 · 3 comments
Closed

[css-mixins-1] how do @function rules cross shadow boundaries? #10953

keithamus opened this issue Sep 26, 2024 · 3 comments
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-mixins

Comments

@keithamus
Copy link
Member

The @function rule defines a custom function to be referred to in other style rules. It needs to be defined how the ident will cross shadow boundaries. Will it be available? Can vended shadow styles clobber?

My recommendation is that they should be available but a shadowroot should be able to clobber within its own scope, and functions defined in a shadow root should not leak into the global styles, if at all possible.

@tabatkins
Copy link
Member

Yeah, that's the behavior you'd get from the standard "tree-scoped name" and "tree-scoped reference" behavior - you can define things at any scope, and they're visible to things in the same scope or nested scopes, but not higher. I suspect it's all we want.

@mirisuzanne
Copy link
Contributor

Can this be closed as question answered, or do we need more discussion on this?

@keithamus
Copy link
Member Author

Yep, let's close it as I believe it's answered.

@mirisuzanne mirisuzanne added the Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-mixins
Projects
None yet
Development

No branches or pull requests

3 participants