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

[ShadyCSS] Parse css-mixins and @apply rules in Angular component-level styles #39

Closed
firstor opened this issue Jun 10, 2017 · 1 comment

Comments

@firstor
Copy link

firstor commented Jun 10, 2017

I am using Angular 4 and Polymer 2. The problem is that Polymer 2 supports css-mixins but Angular doesn't. So I need to parse css-mixins and @apply rules in Angular component-level styles. When I tried to use <custom-style> feature from Polymer 2, the css-mixins worked fine but the styles were messed up. :not(.style-scope) was appended to all style selectors and elements were decorated with style-scope class. I know that's how ShadeCSS emulates ShadowDOM v1 spec. But as I know, Angular also applies different scoping with ShadeCSS, so I only need to handle what Angular missed - css-mixins and @apply rules. So I am asking if there is any way to parse them only from the styles inside a certain element which can be retrieved like as document.querySelector()?

@dfreedm dfreedm transferred this issue from webcomponents/shadycss Jun 7, 2019
dfreedm pushed a commit that referenced this issue Jun 11, 2019
…mposition

Set the root to "clean" before composition. Fixes #38
@dfreedm dfreedm changed the title Parse css-mixins and @apply rules in Angular component-level styles [ShadyCSS] Parse css-mixins and @apply rules in Angular component-level styles Jun 12, 2019
@dfreedm
Copy link
Contributor

dfreedm commented Jun 13, 2019

The @apply functionality is deprecated, and I'm not sure we want to make it work for more use cases. This may be a good candidate for #31 with ::part

@dfreedm dfreedm closed this as completed Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants