-
Is it expected that Example: @keyframes foo {
from { width: 10px; }
to { width: 100px; }
}
a {
color: hotpink;
} const plugin = () => ({
postcssPlugin: "postcss-add-namespace",
Once(root) {
root.walkRules((rule) => {
rule.selectors = rule.selectors.map((selector) => {
return ':where(app-component) ' + selector;
});
});
}
});
plugin.postcss = true;
export default plugin; results in: @keyframes foo {
:where(app-component) from { width: 10px; }
:where(app-component) to { width: 100px; }
}
:where(app-component) a {
color: hotpink;
} |
Beta Was this translation helpful? Give feedback.
Answered by
ai
Aug 1, 2023
Replies: 1 comment
-
Yes. In PostCSS they are just rules with a frame as a selector. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Den-dp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. In PostCSS they are just rules with a frame as a selector.